#Oskario-GPay
1 messages · Page 1 of 1 (latest)
Hi, could you please provide a request id req_xxx? here's how you can find one https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
@sterile field here you go: req_irOiclXJcq0VZf
Please have a look at the billing address name that says null.
I think it's the way you saved your Google Pay card
According to the stripe doc we are using the testmode which contains test cards and billing addresses:
https://stripe.com/docs/testing#cards
are these missing a billing address name?
these cards don't have billing information
you need to provide those when you add a payment to your google pay wallet
The billing address that is used in Google Pay does not match up with my actual Google Pay address, this looks like Test data to me? According to stripe docs its expected to use test data:
API calls return simulated account, payment, customer, charge, refund, transfer, balance, and subscription.
I am wondering why this test data does not contain a billing name?
You're using card payments and not google pay?
I'm a bit confused to be honest with you
can you share the exact code you’re using on the frontend to integrate with Stripe.js and Google Pay?
what card are you using exactly and how? we usually recommend testing by adding your live card to https://pay.google.com/gp/w/u/0/home/paymentmethods and then you can use that with stripe.js(it won’t be charged when using test keys). Are you doing something else?
Sure first we get our stripe public test key to enable the Stripe Elements in our frontend. (Screenshot 1)
We then create the payment request with the product information and requestingPayerName to enable the billing address. (Screenshot 2)
Once the Google Pay Button is clicked we call Stripe.confirmPayment (Screenshot 3)
Basically we are following the steps and use the same code as provided here.
https://stripe.com/docs/stripe-js/elements/payment-request-button?html-or-react=react
the ev object in the last screenshot does not contain the billing address name. When using stripe in test mode there is no way to use my actual payment information since we are using the test mode. This is outlined in the Stripe docs as well.
Hey, taking over here
Can you confirm which test cards you're using? Stripe's, or Google's (from: https://developers.google.com/pay/api/web/guides/resources/test-card-suite)
Yep, then I guess Google just doesn't have a billing name set on those test cards they provide
Can I force Google Pay to not use their test mode and rather use my actual data?
You would need to speak with them regarding that! But otherwise in live mode the billing name field would be set
You should just use Stripe test cards instead of theirs (they'll work)
Is this a common error with that implementation?
Can I instruct the stripe.paymentRequest to use livemode or is this all communicated via the public key which is set to test mode
It's determined by the API keys you use to initialise Stripe.js
Which error?
Sorry error is the wrong word for this I mean this behavior that google cards are used instead of stripe cards
To be fair, we rarely see people using those test cards. But that behaviour seems expected yep
ok thanks for helping me out here and explaining! Have a good rest of the day
You too!
I figured it out! There is a 'special' Google user group that I joined some time ago which would enable a Google Pay testmode for this Account. Once I left this Group I was able to use my real Data!
https://developers.google.com/pay/api/web/guides/resources/test-card-suite
Perfect!