#sheldon

1 messages · Page 1 of 1 (latest)

rose steppeBOT
glossy creek
manic wagon
#

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

glossy creek
#

Yeah, I think the wording on that is a bit off. Will update it to be more accurate

manic wagon
#

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?

glossy creek
#

Do you have an example checkout session URL I can use to confirm it's not showing up?

manic wagon
#

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?

glossy creek
#

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?

manic wagon
#

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'],
        },
thorn prawn
#

Yes, and billing_address_collection=required should work as well

#

That's expected, and reflects what the quoted documentation says, correct?

manic wagon
#

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

glossy creek
#

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

manic wagon
#
{
        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

glossy creek
#

Shows just fine for me

#

So I think billing_address_collection: 'required' is a red herring

manic wagon
#

how so?

#

the outcome is the same if i include that line or not

glossy creek
#

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.

manic wagon
#

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?

thorn prawn
#

Just stepping in for two shoes who had to step away, let me test that

manic wagon
#

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"

thorn prawn
#

Ok, right

manic wagon
#

i tried the latest package - same behaviour

thorn prawn
#

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.

Learn how to collect taxes for one-time payments in Stripe Checkout.

#

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

manic wagon
#

okay got it thanks for explaining, is there anywhere i should go to get the latest announcements for stuff like that?

thorn prawn