#mr-googlepay-amount
1 messages · Page 1 of 1 (latest)
Are you able to consistently reproduce the error? If so, do you have a test site where the issue can be reproduced?
Yes, sure. Thanks: https://marketing-funnel-staging.smalls.com/
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
pi_3Mw7BgIm407W2EQ518XwplKC
Are you updating the Payment Intent after the page renders by chance?
Still digging. Will circle back when I have some more context/questions
Yes, because we can apply a discount code at that point.
@coral steeple so you need to update the element in that case
I'm also checking the code to make sure what's going on. But it's strange because the Pay button is working.
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
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.
If you're using a setup intent, the zero-amount auth on the card is expected
What are you expecting to happen instead, exactly?
In fact, when I click on the Google Pay button, I want to see the correct value, not $0.00
As I understand:
- I have to use setupIntent because we offer a 100% discount to our customers;
- I cannot use GooglePay/ ApplePay because I'm using setupIntent.
Is there a way where I can pass the correct value to Google Pay?
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