#jabza-checkout-subscription
1 messages ยท Page 1 of 1 (latest)
Ah I think the account needs to be registered in US or Canada to be able to use this feature
https://stripe.com/docs/payments/checkout/present-local-currencies?platform=automatic-currency-conversion
For businesses in the US and Canada, present local currency prices for one-time payments by turning on automatic currency conversion using Checkout and Payment Links, without the need to update your integration.
ah - i'm not trying to do automatic currency conversion sorry
i've manually setup a price with two currencies (from a test Connect account)
price_1MyFA3R1VPXkoF0Sze855O0z - price id if it helps
Would expect to see GBP during checkout...
I think it also applies to multi currency pricing.
Have you tried setting the email yet? If not, would recommend doing that https://stripe.com/docs/payments/checkout/present-local-currencies?platform=multi-currency-prices#test-currency-presentment
ah hmm
I am assigning a customerId to the checkout session which has an email - would that not be enough?
ah sorry - i see your point
strange - can't seem to be forced?
does the Connect account need to enable anything to allow accepting pounds?
currency: 'gbp', does work
Not sure, can you share the checkout session ID?
cs_test_a1rOEpvyww7kTS9uFXaf9OLetqT3VLINGTpr6ZGUJvwFAgGhKuqqE37Rnk
the only way so far I've seen it show GBP is when setting the "currency" attribute manually
hmm Checkout Sessions that use payment_intent_data.application_fee_amount
oh wait I'm no using that - so still looks like it should work
๐ stepping in
Taking a look, give me a few
So looks like the issue here is likely the tax_behavior
think i just fixed it kind of - yeah the tax_behaviour...
my secondary currency was set to unspecified....
Yep exactly
guessing that has to be explicitly set? ๐ค
Yep
what is strange is when creating the multi-currency price via API - I do force "exclusive" but that looks to only be applied to the 'default' currency?
product: req.body.product_id,
billing_scheme: "per_unit",
currency: req.body.month_currency_options[0].currency,
unit_amount: req.body.month_currency_options[0].unit_amount,
currency_options: month_currency_options,
recurring: {
interval: "month",
interval_count: 1,
usage_type: "licensed"
},
tax_behavior: "exclusive",
nickname: req.body.month_currency_options.map((pr: any) => `${(currencySymbols as any)[pr.currency]}${pr.unit_amount / (pr.currency === "jpy" ? 1 : 100)}`).join(" | ") + " / month"
});```
That's correct, that doesn't effect the currency_options. If you had a default specified in your tax settings then you wouldn't need to specify this when creating your Price
hmm I see. The reason I am forcing "exclusive" is so my website can show the same price before entering the checkout session - so perhaps I can set "exclusive" inside currency_options for each extra currency?
trying this now..
Yep that's correct. You can either set it for each currency option or you can set the defeault here: https://dashboard.stripe.com/test/settings/tax
great - yeah I've forced set in during price creation and that has worked well
thanks ๐
Glad it is working!
thanks
is there a way on Test account to make it so Tax gets collected
I should be seeing 20% VAT but it's reporting no tax collected (i assume because I haven't setup my VAT number?) Can I create a fake one for this
is it okay to use a fake one in Test mode?
All you need to do is register for the location of your customer on https://dashboard.stripe.com/test/tax/registrations
That VAT isn't relevant here for auto tax
Great, this is mostly working now. Is it possible to calculate the VAT without needing to enter a postcode? The checkout sessions has correctly guessed the country (UK) on loading but doesn't update the price with tax until postcode is typed in...
Nope not possible based on country. You can see the necessary address formats in our docs at https://stripe.com/docs/tax/customer-locations#supported-formats for what is needed from the customer
Ah wait actually
Hmm it does seem for UK it should be able to handle just on country...
hmm
So when you select a country from the dropdown it doesn't calculate tax in the Checkout Session?
Only once you actually enter a postal code?
ok, if I switch to Spain then back to UK - VAT is added without postcode
Thanks for testing. I'll file a ticket about this internally
good to know ๐ thanks. yeah it would be great to have this showing on load
Yep I agree
๐
You cannot use `subscription_data.coupon` to specify a coupon to apply to this subscription in this API version. Please use the top level `discounts` parameter. @tulip sentinel should I be using a newer version of the api?
apiVersion: "2022-11-15",
Thank you
Sure
Stripe support is insanely good ๐
โค๏ธ