#Oskario-GPay

1 messages · Page 1 of 1 (latest)

sterile field
shut pagoda
#

@sterile field here you go: req_irOiclXJcq0VZf

Please have a look at the billing address name that says null.

sterile field
#

I think it's the way you saved your Google Pay card

shut pagoda
#

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?

Simulate payments to test your integration.

sterile field
#

these cards don't have billing information

#

you need to provide those when you add a payment to your google pay wallet

shut pagoda
#

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?

sterile field
#

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?

shut pagoda
#

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

Collect payment and address information from customers who use Apple Pay, Google Pay, and browser-saved cards with Payment Request APIs such as Microsoft Pay on Edge.

#

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.

hushed bridge
#

Hey, taking over here

shut pagoda
#

Using Google Test Cards and addresses

#

Thanks for taking over here @hushed bridge

hushed bridge
#

Yep, then I guess Google just doesn't have a billing name set on those test cards they provide

shut pagoda
#

Can I force Google Pay to not use their test mode and rather use my actual data?

hushed bridge
#

You would need to speak with them regarding that! But otherwise in live mode the billing name field would be set

hushed bridge
shut pagoda
#

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

hushed bridge
#

It's determined by the API keys you use to initialise Stripe.js

hushed bridge
shut pagoda
#

Sorry error is the wrong word for this I mean this behavior that google cards are used instead of stripe cards

hushed bridge
#

To be fair, we rarely see people using those test cards. But that behaviour seems expected yep

shut pagoda
#

ok thanks for helping me out here and explaining! Have a good rest of the day

hushed bridge
#

You too!

shut pagoda
hushed bridge
#

Perfect!