#narnau
1 messages ยท Page 1 of 1 (latest)
๐ happy to help
you don't need to use separate PaymentIntents for one-time add-ons
you can either create or update a subscription with add_invoice_items https://stripe.com/docs/api/subscriptions/update#update_subscription-add_invoice_items
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
which will then be paid within the same invoice as the subscription
Aham! I understand
The thing here would be create a subscription as I'm doing and use <add_invoice_items> to add my "one-time-payments"
Is it correct?
yes
and if you want to add courses in the future you just need to update the subscription and add_invoice_items for the upcoming courses
thank you @lofty island
And if I want my subscription to have trial days, so they don't pay the first "N" days, the added invoiced items will be paid right away or will be payed also after N days?
I think the trial only applies on the recurring price and not the one-off
Is there any documentation about this? ๐