#sheldon
1 messages · Page 1 of 1 (latest)
Yup! That's expected: https://stripe.com/docs/tax/faq#are-apple-pay-and-google-pay-available-to-use-with-stripe-tax
why is it like that? seems kind of odd
even on the demo website it seems likes its possible to do what i want but in reality it isnt (demo screenshot attached)
that link you sent also mentions if they enter their billing address. if i enable billing address collection Apple/Google pay options still disappear its only when i enable shipping address collection they work
Yeah, I think the wording on that is a bit off. Will update it to be more accurate
Stripe Tax supports Apple Pay and Google Pay if your customer enters their shipping or billing address during the payment process.
specifically this part ^
any chance you have a recommendation on how i can achieve something like that screenshot i sent or is that just not possible?
Do you have an example checkout session URL I can use to confirm it's not showing up?
no i havent made these changes live yet because of this issue - i can provide the checkout session object thats used when creating the url if that helps?
I don't understand. You said
I'm attempting to create a checkout session with stripe auto tax enabled. I've noticed that when I do this it removes Google Pay and Apple Pay from the checkout page.
Do you have an example of this?
yeah sure one second ill send you more details
stripe.checkout.sessions.create({
mode: 'subscription',
line_items: [
{
price: 'price_key',
quantity: 1,
},
],
allow_promotion_codes: true,
success_url: `success_url`,
cancel_url: 'canel_url',
automatic_tax: {
enabled: true,
},
});
here is the example of creating the session
here is the resulting page
if i remove automatic_tax, Google/Apple pay show up at the top or if i add
shipping_address_collection: {
allowed_countries: ['CA'],
},
Yes, and billing_address_collection=required should work as well
That's expected, and reflects what the quoted documentation says, correct?
i dont need to collect shipping address so i would like that option to be removed. when i specify billing_address_collection=required only - Google and Apple pay disappear
Also, it's worth mentioning that I copy/pasted your code and created a Checkout Session on my side that shows Apple Pay as an option. You mention
billing_address_collection=required only - Google and Apple pay disappear
Where are you adding this line? I don't see it in the code you posted
{
mode: 'subscription',
line_items: [
{
price: 'price_key',
quantity: 1,
},
],
allow_promotion_codes: true,
success_url: `url`,
cancel_url: 'ur',
automatic_tax: {
enabled: true,
},
billing_address_collection: 'required',
}
this doesnt show google and apple pay for me
Shows just fine for me
So I think billing_address_collection: 'required' is a red herring
You said:
when i specify billing_address_collection=required only - Google and Apple pay disappear
But that has no material effect on whether Apple or Google Pay appear or not.
correct
only shipping_address_collection has an effect on whether Apple or Google Pay appear
heres another interesting point - when i try in safari apple pay does show with billing_address_collection: 'required'
so this seems to be an isolated occurrence with google pay on chrome potentially
are you able to try to reproduce on chrome?
Just stepping in for two shoes who had to step away, let me test that
no problem, ive been testing more and its only chrome and google pay not showing with the following:
{
mode: 'subscription',
line_items: [
{
price: 'price_key,
quantity: 1,
},
],
allow_promotion_codes: true,
success_url: 'url',
cancel_url: 'url',
automatic_tax: {
enabled: true,
},
billing_address_collection: 'required',
};
just for more info my stripe npm package version: "stripe": "10.2.0"
Ok, right
i tried the latest package - same behaviour
Stripe Tax, via Checkout, only works with Google Pay currently when shipping address is collected:
https://stripe.com/docs/payments/checkout/taxes?tax-calculation=stripe-tax#create-session
When you enable Stripe Tax in Checkout, Google Pay is only available to customers for sessions that require collecting a shipping address. Apple Pay with Stripe Tax displays only when the customer’s browser supports Apple Pay version 12.
This is due to a limitation with Google Pay providing insufficient location information for tax calculation
So what you're seeing currently is expected -- we're aware of this and working on improving what can be supported
okay got it thanks for explaining, is there anywhere i should go to get the latest announcements for stuff like that?
I'd say you should register for our dev digest email list:
https://stripe.com/docs/upgrades#stay-informed
And if you rely on the stripe-node library, also set up a Watch on github to get notifications about releases