#Vigiliance - Google Pay

1 messages · Page 1 of 1 (latest)

chrome jewel
#

The Payment Request Button will produce a Payment Method you can use like any other Payment Method.

crude lance
#

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!

chrome jewel
#

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:

  1. The Payment Request button will fire a paymentmethod event: https://stripe.com/docs/js/payment_request/events/on_paymentmethod
  2. Your code listens for that event and, when it fires, uses the Payment Method provided to set up the Subscription
crude lance
#

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! 😆