#stereozwo
1 messages · Page 1 of 1 (latest)
If the customer pays with a credit card, I create his subscription in Stripe and provide a payment source, which I don't have in this case.
Give me a moment to take a look as paypal is pretty new, don't know a ton about it myself 😅
Yeah, shure!
From your description, it sounds like you're trying to have them store their payment method on Stripe.
Is there a guide you're following for this?
We have been using Stripe for a long time and have only accepted credit cards so far. Until now, the checkout has worked in such a way that the customer fills out a form with all the data, i.e. e-mail, password, desired subscription and enters their credit card details via the Stripe payment element. Then a payment intent was generated, with which I created the customer in Stripe via the Stripe API.
If I want to use PayPal now, the customer is first forwarded to PayPal. So I create him as a customer in the database and in Stripe beforehand, but I can't process the payment at this moment.
How do I create the subscription in Stripe without having a payment method or something similar
I only have this information after the PayPal user comes back to my site.
What information do I have before the customer is forwarded to Paypal so that I can allocate the payment when he comes back to my site from Paypal?
There is no guide to it. It's a homegrown solution that I inherited from a former developer.
Can I enter the stripe customer id here?
stripe.confirmSetup({})
Whoops sorry, things are running busy.
If I want to use PayPal now, the customer is first forwarded to PayPal. So I create him as a customer in the database and in Stripe beforehand, but I can't process the payment at this moment.
That redirect isn't something stripe requires.
According to this guide, you can create the SetupIntent before redirecting the customer
https://stripe.com/docs/payments/paypal/set-up-future-payments
That would simplify the flow too
OK. I think I'm getting closer. I'll keep trying and come back here if I have any questions.
Thanks very much!!