#Germane
1 messages · Page 1 of 1 (latest)
Just to make sure I'm following you, you are following this guide:
https://stripe.com/docs/billing/subscriptions/paypal
right ?
Do I need to create a paymentIntent Object aswell to initiate the first payment?
No. Continue following the guide. Create the Subscription with the customerId, you'll have a PaymentIntent created by the Susbcription.
Or do I need to manually use the PaymentMethod.attach() on the customer_id before I create the subscriptions object?
No the setupintent will achieve this in the background. Just continue following the guide till the end, step-by-step ?
Oh well. I actually followed this https://stripe.com/docs/payments/paypal/accept-a-payment?platform=web&ui=API
I guess your link clarifies it all.
Yes.
the call to stripe.subscription.create() with all proper id's will initiate the first payment that very moment?
Oh yes it does. I'll just read it up. Thanks for the link!
Happy to help!
Oh one thing, I guess that doc is obsolete a little because of that {betas: ['paypal_pm_beta_1']} right?
I'm getting warnings from the stripe API on putting that in.
but the latest API doesn't like that flag anymore.
Are you facing an error or a warning ?
A warning
can you share what log you are seeing ?
`The following betas are unrecognized for Stripe() parameter:
- paypal_pm_beta_1
They are either invalid or expired betas, please remove these beta flags to prevent future integration issues.`
Thanks for sharing, checking...
Is it actually possible, to prevent the redirect from stripe.confirmPayPalSetup on the client?
Using the webhook is so much more convenient anyways.
You can remove that flag paypal_pm_beta_1
So I figured
Nope, there's no such parameter for that:
https://stripe.com/docs/js/setup_intents/confirm_paypal_setup
But you can still rely on webhooks
Yea. I just don't like the messed up uri with all that data. But nevermind.
Hi! I'm taking over from my colleague. Please, let me know if you have any other questions.