#Nadiya-subscription-one-time-upe
1 messages · Page 1 of 1 (latest)
Hey there! How are you creating your subscription?
Is this an one-time payment only on the initial invoice?
yes right
using paymentIntent
Can you share the Subscription ID or the code you're using to create it?
How does that work with a recurring payment?
sorry, i may be wrong. i'm calling an api to create subscription with default_incomplete, and passing clientSecret to front-end
then, calling stripe's confirmPayment upon clilcking purchase button
yeah sure
sub_1KTD63KWW6Esfew4VU3FWpbZ
So if this one-time payment is to only be on the initial invoice, you'll manually need to add it the invoice generated by the subscription
sorry, can you please explain how to manually add it in the invoice?
Sure, you'd create a new Invoice Item and pass the invoice parameter: https://stripe.com/docs/api/invoiceitems/create
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
So when you create the Subscription, it'll generate a new open invoice (and return the ID to you). You'd add the new Invoice Item, which will update the associated Payment Intent amount
Then you'd just confirm/take payment as normal