#allan_chan

1 messages · Page 1 of 1 (latest)

crisp geodeBOT
chilly epoch
#

hello! how can I help?

keen musk
#

How to create a payment intent for a subscription

chilly epoch
#

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?

keen musk
#

How to differentiate between one-time and subscription? What events do you subscribe to listen for?

chilly epoch
#

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?

crisp geodeBOT
keen musk
#

Ok, the current web component is used to customize the payment page

north violet
#

Hi, taking over here, and could you please continue to elaborate? I haven't been able to follow unfortunately

keen musk
#

hi,

#

We use a custom page that doesn't know how to listen for subscription events

north violet
#

So are you creating Subscription or creating PaymentIntent?

keen musk
#

creating payment intent

#

but prices are cyclical

#

How to establish payment intent for a subscription

north violet
#

You create a Subscription, then it will generate Invoices, which hold PaymentIntent inside it

keen musk
#

Is there a client secret that is required to customize the page?

north violet
#

Not really to "customize the page", but yes there will be a client secret, from a PaymentIntent

keen musk
#

Which subscription interface to use?

north violet
#

Sorry didn't follow that. What do you mean by interface?

keen musk
#

interface equals API

north violet