Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
443 views
in Technique[技术] by (71.8m points)

applepay - How to add Google Pay and Apple Pay options to Stripe Checkout when session mode is "setup"?

How can I enable options for Google Pay and Apple Pay to appear in Stripe Checkout page when using Checkout Session with mode setup?

I'm trying to add a new payment method for a customer so I can later use it to charge for a subscription upgrade.

The issue is that I cannot figure out how to add these payment options to show on the checkout page and create a payment method for it.

If I change my Checkout Session to mode subscription the options show correctly and the payment method is created correctly, but this mode creates and charge a subscription which I don't want. I only want to add the payment method without charging anything.

question from:https://stackoverflow.com/questions/65648609/how-to-add-google-pay-and-apple-pay-options-to-stripe-checkout-when-session-mode

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Using Google and Apple Pay for Checkout setup mode isn't possible. The point of "setup" mode is to collect payment details and perform a 3DS check on them so you can charge "off-session" later without having to get your user back "on-session" in case 3DS is required.

Apple and Google's wallets are considered exempt from 3DS since they already require a 2FA activation.

If you want to use a digital wallet to create a subscription but not charge till later, you should look into using trial periods.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...