#ioanna_api
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1218322174591500329
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi there! You shouldn't have to do anything special to use GooglePay with Checkout. GooglePay will automatically be presented as a payment option if you have a card configured in your GooglePay account in Chrome
If you view this page in Chrome, do you see the GPay button at the very top, under the header? https://docs.stripe.com/stripe-js/elements/payment-request-button
No I only see pay with link
Got it, okay. Do you see any saved cards if you access pay.google.com from Chrome?
Are they cards?
Yes
Okay. Could you create a Checkout Session in test mode in the same way and share the link here?
Thanks a lot!
Okay, I think this has to do with Tax. Since automatic tax is enabled for this Session, GooglePay will only be displayed if shipping address is also collected
๐
Ok trying to add that
Although it's a digital product I'm trying to sell
Also we are collecting the customer's address
This has to do with how GooglePay works and under what conditions they share billing address with us.
So, in order for us to be able to calculate tax, we need a postal code. GooglePay won't share any address information with us unless shipping address is collected
Ok so is there a way I can set up my create session request to get that sorted?
Yep! When you create the Session, you'll want to pass along the shipping_address_collection dictionary: https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-shipping_address_collection
We also call this out here: https://docs.stripe.com/payments/checkout/taxes?tax-calculation=stripe-tax#apple-pay-and-google-pay
@vale mantle We're about to close for the week. Any other question I can help with?