#Matt Jones (Sitegurus)
1 messages · Page 1 of 1 (latest)
there are settings on https://dashboard.stripe.com/test/settings/payment_methods that can turn those wallets off and on
So in test mode, they are on already:
Is that the only condition?
you have to be in a browser that supports those methods and has the wallets set up(same requirements as https://stripe.com/docs/stripe-js/elements/payment-request-button?client=html#html-js-testing)
also if you're using automatic_tax and not collecting shipping info, those wallets are disabled, might be that (grey callout box at https://stripe.com/docs/payments/checkout/taxes?tax-calculation=stripe-tax#create-session )
Ah that's interesting thanks.
The checkout session where it isn't appearing does have custom shipping options that are pushed in from a 3rd party API- so have to ask for shipping address before starting the session and therefore don't ask for it within the checkout. We also use "dynamic tax rates"- not sure if that counts as automatic- grey box seems to suggest this happens for all Stripe tax?:
"line_items[{{index}}][price_data][tax_behavior]": "exclusive",
"line_items[{{index}}][dynamic_tax_rates][0]": "txr_1LfiCWFGEVGzIfjtcnlb70RG",
I think I can't actually send Stripe Checkout the Shipping address that's already been provided by the user before the session...? But will check if I can do that.
dynamic_tax_rates I think would have the same problem yes(which fundamentally is that you need to know an exact shipping address to calculate automatic tax/determine a tax rate, and if the customer pays with those wallets the information in their wallet is not available to the payment page until after the customer approves the payment, which means you can't show them the tax amount before they already approve)
Ah I see the problem.
I'm going to try and see if I can pass the shipping address to checkout using "payment_intent_data.shipping.address". Unless you already know that won't work?
I don't know off the top of my head. I guess what you're asking is if we're smart enough to take the address from there and allow the wallet option to be used. Not sure, would have to test it.