#Benoît

1 messages · Page 1 of 1 (latest)

tawny chasmBOT
unique garnet
#

Then create both subscriptions on the backend

limpid locust
#

Thank you

#

I use a Payment Element form. Is it possible to setup de payment method from it ?

#

For now, il create a subscription, get the Payment Intent client_secret from the invoice, and pass it to stripe.ConfirmPayment()

unique garnet
limpid locust
#

Interesting, thank you.
Does stripe.confirmSetup() open a 3D Secure window if needed, and before any payment ?

unique garnet
#

Yes

limpid locust
#

Ok. Is this possible to chain the payment of my 2 subscriptions without having to wait the stripe.confirmSetup() response or do it myslef manualy in a second time ? I don't see anything for this on the docs

#

it would not be a problem for me to do this in a second time if i was sure that my customer would not be redirect on a success page. Indeed, in this case i would have lost the plans he wanted to subscribe to

unique garnet
#

Setupintent has nothing to do with the 2 subscriptions

#

You'd set up the payment method by calling confirmsetup

#

And then create both subscriptions on the backend

limpid locust
#

so i have to register somewhere the plans my customer wants to subscribe to, and do this in a second time

unique garnet
#

Yep

#

There's not a way for them to subscribe to 2 plans in 1 go the traditional route

#

ie. grabbing the subscription's payemnt intent client secrets and passing those to the payment element

#

You can only do 1 at a time that way. So, the setupintent is a workaround

limpid locust
#

Yes 😦

unique garnet
#

That allows you to collect paymetn once and then create subscriptions later

limpid locust
#

Yes. I have no problem with the Setup Intent way, but it would be a problem if my user has a page refresh because of the redirect_url;