#mr-googlepay-amount

1 messages · Page 1 of 1 (latest)

lusty skiffBOT
opal cove
#

Are you able to consistently reproduce the error? If so, do you have a test site where the issue can be reproduced?

coral steeple
opal cove
#

Do you have a Payment Intent ID I can look at that was created and showing $0 amount? I have a hunch, but I need an actual PI object to look at

coral steeple
#

pi_3Mw7BgIm407W2EQ518XwplKC

opal cove
#

Are you updating the Payment Intent after the page renders by chance?

#

Still digging. Will circle back when I have some more context/questions

coral steeple
#

Yes, because we can apply a discount code at that point.

meager finch
#

@coral steeple so you need to update the element in that case

coral steeple
#

I'm also checking the code to make sure what's going on. But it's strange because the Pay button is working.

meager finch
#

if you update the PaymentIntent amount over time you have to do this call

#

Otherwise, if you don't use a PaymentIntent immediately, can you share your exact code/how you set up Google Pay? Like are you using the PaymentRequestButton or PaymentElement?

#

I'm trying to look at your payment form but there are a ton of steps

#

mr-googlepay-amount

lusty skiffBOT
coral steeple
#

OK. I got it.

At that point, we are working with setupIntent on the frontend. The value being shown is from our database. The problem is we cannot use the paymentIntent at that point because we can offer 100% discount, and Stripe does not allow an amount to be 0.0.

With credit card, when I click on the Pay button, the front-end sends a confirmSetup using stripe.js and the backend receives the setup_intent.succeeded webhook event, then I create the payment_intent on the backend.

weak stirrup
#

If you're using a setup intent, the zero-amount auth on the card is expected

#

What are you expecting to happen instead, exactly?

coral steeple
#

In fact, when I click on the Google Pay button, I want to see the correct value, not $0.00
As I understand:

  1. I have to use setupIntent because we offer a 100% discount to our customers;
  2. I cannot use GooglePay/ ApplePay because I'm using setupIntent.

Is there a way where I can pass the correct value to Google Pay?

weak stirrup
#

How are you creating the payment requests currently?

#

What does you integration look like?

#

Sharing specific snippets of your code around this will help us to guide you

lusty skiffBOT