#geimsdin-payment-intent

1 messages · Page 1 of 1 (latest)

opal jay
#

Do you confirm by server-side?

median kestrel
#

Yep

#

It is a scheduled subscription

opal jay
#

You can enable this and we will send email to them

#

otherwise you will need to build a client-side confirmation page and get your customer online to that page

median kestrel
#

The client insert the data live already but because of the subscription I have to confirm few minutes later by API

#

If I create that page, how can I link the payment to my scheduled subscription?

opal jay
#

Well yes, you can do anything with the your page I guess?

median kestrel
#

I guess too... but how to create the payment object in my page so it automatically charges that specific subscription? I use the same secret?

opal jay
#

Yes using the same Payment Intent secret

median kestrel
#

I create a setupintent and I have that secret

#

If I check the attached payment Intent it has no secret stored

#

No sorry

#

it is client_secret

#

So I create a payment object from that client secret and automatically will charge the subscription

#

right?

opal jay
#

I believe you can use the client secret directly to supply to client side

#

Client side always expect client secret

median kestrel
#

ok

#

thanks

median kestrel
#

When a subscription schedule tries to pay a second or third phase, which event and object I receive in webhook in case of payment succesful or not?

carmine hull
#

When the start_date of a phase is reached, subscription schedule will update the subscription and generate the invoice. When the payment of the invoice is made successfully, invoice.paid will be sent