#allan_chan
1 messages · Page 1 of 1 (latest)
hello! how can I help?
How to create a payment intent for a subscription
Assuming the Subscription requires a non-zero dollar payment, the Subscription automatically generates an Invoice and the Invoice has a PaymentIntent.
why do you want a PaymentIntent?
How to differentiate between one-time and subscription? What events do you subscribe to listen for?
can you elaborate in more detail the problem you're trying to solve e.g. why do you need to differentiate between one-time and subscription payments?
Ok, the current web component is used to customize the payment page
Hi, taking over here, and could you please continue to elaborate? I haven't been able to follow unfortunately
So are you creating Subscription or creating PaymentIntent?
creating payment intent
but prices are cyclical
How to establish payment intent for a subscription
You create a Subscription, then it will generate Invoices, which hold PaymentIntent inside it
Not really to "customize the page", but yes there will be a client secret, from a PaymentIntent
Which subscription interface to use?
Sorry didn't follow that. What do you mean by interface?
interface equals API
You simply create a Subscription, following this Doc https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=elements