#Goltan - one time payment with subscriptions
1 messages · Page 1 of 1 (latest)
How are you creating these subscriptions? Through the API or Checkout or something?
Do we 1. Create Customer, 2. Create Subscription, 3. Create Invoice for additional Products, 4. Create PaymentIntent for both?
You can add one time items to the first payment for your subscription. There are a couple ways to do that depending on how you are creating these subscriptions
we have our own custom cart and using the API
subscriptions are either Monthly or Annual
could we charge for Product and Subscription on the 1st transaction (make sure Card is saved against Customer) and setup a Subscription which starts 1 month/year in the future?
The easiest way would likely be to create Invoice Items on the first invoice of your subscription before it is finalized. 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.
That way you have one transaction for the subscription fee and the one time payment and that sets up the Subscription
You can definitely do it your way as well but that has a few more moving parts
so... Create Customer -> Capture Card -> Create Invoice with Subscription and non-recurring Product -> Create PaymentIntent for Invoice -> Confirm ?
The Subscription itself should create an invoice that already has a payment intent itself. My suggested flow was more:
Create Customer -> Create Subscription -> Add Invoice Items to Subscription's first Invoice -> Finalize Invoice -> Capture Card -> Confirm Invoice PaymentIntent