#jabza-checkout-subscription

1 messages ยท Page 1 of 1 (latest)

bitter waspBOT
gusty dew
fair rune
#

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...

gusty dew
fair rune
#

ah hmm

#

I am assigning a customerId to the checkout session which has an email - would that not be enough?

gusty dew
#

The example above forces checkout to localize

#

it uses a special email syntax

fair rune
#

strange - can't seem to be forced?

#

does the Connect account need to enable anything to allow accepting pounds?

#

currency: 'gbp', does work

gusty dew
#

Not sure, can you share the checkout session ID?

fair rune
#

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

tulip sentinel
#

๐Ÿ‘‹ stepping in

#

Taking a look, give me a few

#

So looks like the issue here is likely the tax_behavior

fair rune
#

think i just fixed it kind of - yeah the tax_behaviour...

#

my secondary currency was set to unspecified....

tulip sentinel
#

Yep exactly

fair rune
#

guessing that has to be explicitly set? ๐Ÿค”

tulip sentinel
#

Yep

fair rune
#

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?

fair rune
#
                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"
            });```
tulip sentinel
#

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

fair rune
#

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..

tulip sentinel
fair rune
#

thanks ๐Ÿ™‚

tulip sentinel
#

Glad it is working!

fair rune
#

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?

tulip sentinel
#

That VAT isn't relevant here for auto tax

fair rune
tulip sentinel
#

Ah wait actually

#

Hmm it does seem for UK it should be able to handle just on country...

fair rune
#

hmm

tulip sentinel
#

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?

fair rune
#

it loads up like this

tulip sentinel
#

What if you change the selector to Spain?

#

Does it update with tax?

#

Or no?

fair rune
#

ok, if I switch to Spain then back to UK - VAT is added without postcode

tulip sentinel
#

Thanks for testing. I'll file a ticket about this internally

fair rune
#

good to know ๐Ÿ™‚ thanks. yeah it would be great to have this showing on load

tulip sentinel
#

Yep I agree

tulip sentinel
#

๐Ÿ‘

fair rune
#

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",

tulip sentinel
#

That's the newest version

#

Where subscription_data.coupon was removed

fair rune
#

Thank you

tulip sentinel
#

Sure

fair rune
#

Stripe support is insanely good ๐Ÿ™‚

tulip sentinel
#

โค๏ธ

bitter waspBOT