#rupesh-checkout-currency

1 messages ยท Page 1 of 1 (latest)

onyx valveBOT
lofty vale
#

Hello! I'm happy to help but I am going to need a lot more details about your integration, what product(s) you use, how you integrated, what's not working, what you see differently in Test mode, etc.

glass crystal
#

I am using stripe checkout. When the user try to buy the subscription I get the checkout session url from the server and the user is redirected to stripe checkout

#

The product setup is USD default and then EURO and GBP is added as more currency

lofty vale
#

So you did those steps?

#

Can you give me an example Checkout Session URL where ths works in Test mode?

glass crystal
#

In test mode we need to use the email id with location_countrycode to test and it was working

#

Sorry I don't know how to give checkout session URL

lofty vale
#

you can paste it as text

glass crystal
#

from where to look at it. can you please check on the live url . Shall I give you for verification

lofty vale
#

rupesh-checkout-currency

glass crystal
#

It was automatically showing the correct currency but now I am trying to access from UK and I am being shown USD

#

in production

lofty vale
#

sorry, to help you I need concrete examples to look at

glass crystal
#

I will give you the production URL from UK. Give me a second

lofty vale
#

I need both a Live and Test mode one

lofty vale
#

Can you share an example Test mode one?

lofty vale
#

Okay so that one has clearly +location_gb and _still` shows USD?

#

okay so that might be the problem

glass crystal
#

yes

lofty vale
#

was it working on that specific account?

lofty vale
#

You're re-using an existing Customer is that normal?

glass crystal
#

Yes, I create the customer first and then start the checkout session

lofty vale
#

gotcha

glass crystal
#

What happened?

lofty vale
#

Not sure yet, it works totally fine for me on my own account

glass crystal
#

It was working fine yesterday

#

I have not changed anything in the test

lofty vale
#

I'm looking into it

glass crystal
#

ok, thanks

lofty vale
#

how are you testing from the UK? Using a VPN? Or you're located there?

glass crystal
#

I am located in the UK

lofty vale
#

gotcha, we're looking into it

glass crystal
#

thank you

lofty vale
#

Did you change your Prices maybe since yesterday or add Tax and such?

glass crystal
#

No, no change at all.

#

code is stable. Currency test was done yesterday evening

lofty vale
#

Can you find an example from yesterday that worked so that I can compare?

glass crystal
#

WE didn't buy we just verified which currency was displayed based on the email id

#

Sorry, We created the products yesterday and finalised it after testing that the currency are being displayed based on the email id.

onyx valveBOT
lofty vale
#

I'm looking at your data in Test mode but the only Customers you have with those magic emails are from today

#

do you delete the data a lot?

glass crystal
#

Yes, I cleaned up those fake email ids to avoid confusions

lofty vale
#

gotcha

#

Okay so I really need a concrete example from yesterday please

glass crystal
#

Ok, can you please check the test mode, what happened when the products are created with USD as default and EURO and GB as other currency

lofty vale
#

I can't do any of this

#

Like right now our intuition is that you are now using TaxRates and weren't yesterday because TaxRate don't support dynamic currency change if you have those

#

You're adamant you changed nothing, which might be possible, but we need a clear example of thos working yesterday and I can't find any example in your account

glass crystal
#

Tax rate is applied only for UK customers and not for any other customer. Even if tax rate is applied it should be in GBP not in USD

lofty vale
#

Not sure what this could mean

#

Your Price is configured with USD by default. You pass a TaxRate, that TaxRate disables "dynamic currency" logic and so it defaults to USD

glass crystal
#

I had default as GBP and I had to change yesterday because I was told to have USD as default so that all other countries will see USD if no matching currency is found.

lofty vale
#

yeah so you see things did really change after all in multiple ways ๐Ÿ˜…

#

1/ You likely tested currency logic in Test mode without TaxRate which works fine
2/ When you tested with TaxRate it showed GBP likely because it was the default and you didn't realize the dynamic rendering failed
3/ You changed your Price logic to have USD as the default so now it shows USD which is not what you want

#

So overall this feature does not work today with TaxRate(s) sadly. It's something we do want to fix but it's one of the edge-cases where it just gets disabled

#

Does that make sense?

#

So I think you want to change your Price to have GBP as the default or 2 separate Prices when you know someone is a UK customer and you put a TaxRate already

glass crystal
#

Alright, so should I pass the currency explicitly when we want to take GB Tax?

lofty vale
#

yeah that can work

glass crystal
#

How can I test it?

lofty vale
#

pass currency on Checkout Session creation in Test mode to confirm

glass crystal
#

Ok, thank you for the help. I would try to fix it.

lofty vale
#

๐Ÿ‘ good luck

glass crystal
#

quick question. Which field do I need to add in the nodejs payment payload. Can you please give me a link to the structure so that I can add the field

lofty vale
#

I don't understand the words you're using

glass crystal
#

Thank you.

glass crystal
#

Brilliant Koopajah. problem solved with the addition of currency when we are charging tax.

#

Thank you.

lofty vale
#

yay!