#nghia2002_api
1 messages · Page 1 of 1 (latest)
👋 Welcome to your new thread!
⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1366641655968698369
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
I'm working on a Stripe integration using the Pricing Table to let users purchase plans. I want to display the prices in the user's local currency (e.g. AUD for Australia, SGD for Singapore), and I've already set up multi-currency prices for each product.
According to Stripe's documentation, you can pass a customer_email like test+location_AU@example.com, and Stripe will infer the appropriate currency-specific price. This works — but it creates a new customer every time, which I want to avoid.
Instead, I'm using the customer_session_client_secret to associate the pricing table with an existing customer. However, when I do this, Stripe always shows the default currency (e.g. SGD), and there's no way to pass a location hint like you can with customer_email.
Is there a way to:
Use customer_session_client_secret to preserve the existing customer
Still let Stripe display the pricing table in the correct local currency?
this is my website looks like
I've already had the muitl-currencies price of each product, and the location of user also
But I don't know how to let Stripe know which currency will be displayed in pricing table?
Hi! How are you using the customer_session_client_secret with the pricing table?
I authenticate the user in my system first, and create a customer session by user's stripe customer id ( I save it in my database). Then I return the client secret to Frontend to put in the pricing table code
As I mention, I've already created the multi-currencies prices for product and I can get the user's country from my sign up flow. So where can I put that to let Stripe know which currency should be displayed in the pricing table
And I use the client-secret for passing the exist customer
Thanks for the details! Looking into this!
Yep, I just want to know if Stripe can handle this or not
I read the docs many times and only find the testing way: put the customer email with suffix include the location like: location_AU, but it's not what I looking for.
Thank you for waiting! We will need to look into this in more detail. Can I get your assistance to write in about this? Do also provide additional details such as the pricing table ID, etc.
Hello @normal wedge, we have sent you a direct message, please check it at https://discord.com/channels/@me/1366652468703793152
- 🔗The message has instructions on how to open a direct support case with our Developer Support team, in order to help you more effectively.
Yes, here is the pricing table ID: prctbl_1RE6bsP319VNjkVGkr8k4lwE
I already config 1 muiti-currencies price for testing
Thanks!
Any update about my case?
We will need to investigate and reply back to you. We cannot provide an immediate update.
Okay!
I will need to integrate it soon, so let's me know when you find something new!
We will reply to the ticket with any new updates.
I figured it was just a theoretical integration thing, didn’t expect it to actually affect the pricing table I was testing?
Since the correct currency is not showing, we will need to investigate it. We will not be able to provide updates via this channel. Any updates will be provided via the ticket.
Uhm may be you misunderstand. I just want to know how can I set up the Stripe pricing table to display in correct currency. No error here, just want to ask how can I do that?
You mentioned that even after passing the customer session secret, you weren’t able to get the right currency. Due to this we'll need to investigate this to figure out why.
Ah yes, but that customer need to set the default currency, right? Or I miss something?
hi! I'm taking over this thread.
please wait for someone to investigate your issue, and they will get back to you by email.
Okay, but a question. I pass the customer session secret to pricing table, so the pricing table will take the currency of this customer to display, right? So how can I set the currency for a customer?
Yep I agree it's not clear how to set the currencly when using customer_session_client_secret. That's why you need to wait for an email reply.