#Vigiliance - Google Pay
1 messages · Page 1 of 1 (latest)
Hello! Yep, you can use Google Pay for Subscriptions with Elements by using our Payment Request Button: https://stripe.com/docs/stripe-js/elements/payment-request-button
The Payment Request Button will produce a Payment Method you can use like any other Payment Method.
I saw that documentation, but unfortunately I'm experiencing one time charge as it creates payment intent not a payment method.
Will check again, I might've missed something! Will let you know!
That guide does walk you through a one-time payment and does need to be modified to work with Subscriptions. At a high level the way it works is:
- The Payment Request button will fire a
paymentmethodevent: https://stripe.com/docs/js/payment_request/events/on_paymentmethod - Your code listens for that event and, when it fires, uses the Payment Method provided to set up the Subscription
Oh ye! I missed it!
I tried checking what paymentRequest on paymentMethod response and there's that Payment Method ID!
That confirmCardPayment made me nuts and lack of information on google pay subscription stripe on google search, lmao!
Now I just pass that payment method ID to my system and works the same way as creating subscription on card form!
Thank you for shedding light to me! Finally made it to work after lots of hours! 😆