#dannyboy
1 messages · Page 1 of 1 (latest)
Hi there
Hello
Subscriptions create Invoices which create PaymentIntents
You don't create PaymentIntents directly if you are working with Subscriptions
Can you clarify your ask here?
I'm trying to find a more easier way to implement this recurring payment given that we have a system that handles single payments perfectly already.
In our single payment flow, I create PaymentIntent object.. i was wondering if i could just create subscription after that
Is this possible..
- Create PaymentIntent.. Pay for it..
- Create subscription with
trial_period_days. Basically the initial payment will not be linked to the subscription but the succeedding will be?
Yeah that works fine overall
But you could also just create a Subscription for that initial payment
Is there a reason you want to take a one-off first before creating the Sub with a trial?
hmm, our payment flow is a bit complicated already.. the recurring payment might not be the same as the initial as there are combined one off payments..
like
monthly membership 10$
game registration - 5$ -> one-off payment
So when you create a Sub you can add one-time Prices or InvoiceItems alongside a recurring Price and then also have a trial
So you could do this all with the Subscription if you want
do you think that will be easier
Imo yes, but mostly depends on your integration and what you want
we could end up tons of invalid subscription as we are creating it before hand? PaymentElement requires PaymentIntent to be created right?
Depends on the flow you use. This won't happen often if you use the deferred intent flow: https://stripe.com/docs/payments/accept-a-payment-deferred?type=subscription
thank you bismarck!