#rupesh-checkout-currency
1 messages ยท Page 1 of 1 (latest)
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.
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
So you did those steps?
Can you give me an example Checkout Session URL where ths works in Test mode?
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
you can paste it as text
from where to look at it. can you please check on the live url . Shall I give you for verification
rupesh-checkout-currency
it was working when we were using email in the following format: test+location_FR@example.com, test+location_GB@example.com,
It was automatically showing the correct currency but now I am trying to access from UK and I am being shown USD
in production
sorry, to help you I need concrete examples to look at
I will give you the production URL from UK. Give me a second
I need both a Live and Test mode one
Can you share an example Test mode one?
TEst mode below
Yesterday it was working fine but now it is also showing USD. I have not changed anything
Okay so that one has clearly +location_gb and _still` shows USD?
okay so that might be the problem
yes
was it working on that specific account?
yesterday I tried with a different account but I have changed it to _gb, _fr and _us and all were working fine
I have tried with _fr below and it is still showing USD:
You're re-using an existing Customer is that normal?
Yes, I create the customer first and then start the checkout session
gotcha
What happened?
Not sure yet, it works totally fine for me on my own account
I'm looking into it
ok, thanks
how are you testing from the UK? Using a VPN? Or you're located there?
I am located in the UK
gotcha, we're looking into it
thank you
Did you change your Prices maybe since yesterday or add Tax and such?
Can you find an example from yesterday that worked so that I can compare?
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.
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?
Yes, I cleaned up those fake email ids to avoid confusions
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
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
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
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
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.
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
Alright, so should I pass the currency explicitly when we want to take GB Tax?
yeah that can work
How can I test it?
pass currency on Checkout Session creation in Test mode to confirm
Ok, thank you for the help. I would try to fix it.
๐ good luck
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
I don't understand the words you're using
https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-currency that's the parameter where you can force the currency
Thank you.
Brilliant Koopajah. problem solved with the addition of currency when we are charging tax.
Thank you.
yay!