#Nadiya-subscription-one-time-upe

1 messages · Page 1 of 1 (latest)

drifting oriole
#

Hey there! How are you creating your subscription?

#

Is this an one-time payment only on the initial invoice?

knotty grotto
#

yes right

knotty grotto
drifting oriole
#

Can you share the Subscription ID or the code you're using to create it?

drifting oriole
knotty grotto
#

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

drifting oriole
#

Got it!

#

And can you share the Subscription ID you've created?

knotty grotto
#

yeah sure
sub_1KTD63KWW6Esfew4VU3FWpbZ

drifting oriole
#

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

knotty grotto
#

sorry, can you please explain how to manually add it in the invoice?

drifting oriole
#

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

knotty grotto
#

ok, one question, so should i use update InvoiceItem api or create Invoiceitem?

#

this one just uses customer id and price id

#

how do i pass invoice id in invoiceitem create api?