#melisquencia_brazil-checkout
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/1270427220204326913
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
looking!
Unfortunately in Brazil we only support the few payment methods you mentioned. You can't use iDEAL or SEPA Debit or any other European specific ones so it's normal top only see card
Oh, that's unfortunate ๐ฆ
Can you help me with another situation that is related to credit cards, then?
I'm having a hard time configuring things so they appear the way I need
I can try if you have a specific question about your code as the developer!
melisquencia_brazil-checkout
I want to set the price for my product in my local currency (BRL), and I want people from other countries to see the price converted to their own currency on the checkout page. However if you check the checkout session I created (https://checkout.stripe.com/c/pay/cs_live_a1U0Qa7be6bt9E4HDKcdHxi7IXy3x8sxONzhMT7s2x1TyNp8poVxw9sy1Y#fidkdWxOYHwnPyd1blppbHNgWjA0VW5Tc1dXdU8yTzxHNG9EcmNQMHM9ZHRjMldVYzVBQnUyZF03QmZNb1JQcGk3Yz11QUNfaEtAYVdNfEZUcUtqfUw9RmpgXX1sVDxKb18yaURsSEFUc0RfNTUxS1FXZEc2TScpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBabHFgaCcpJ2BrZGdpYFVpZGZgbWppYWB3dic%2FcXdwYHgl) it shows the price in BRL no matter in which country you are.
I'm using the following Node.js code to create the session:
const stripe = new Stripe(stripeConfig.production_key);
const checkout = await stripe.checkout.sessions.create({
currency: 'BRL',
line_items: [
{
quantity: 250,
price: 'price_1Pkm86RpJ7J9B1jAevJBt8Oi',
},
],
success_url:
'https://tibiapix.com/?transaction-id=2dbd2bc9-873e-4e50-9e1c-cdb77f9bb72a&product=tibia-coins',
mode: 'payment',
customer_email: 'vitorbertolucci@gmail.com',
});
Looking
@opaque aurora I wonder if it's because you are loading the Checkout Session from Brazil
I tried on my own Brazil account and I am based in North America and it works fine for me
I have tried with VPN
Can you send me a screenshot of how the checkout looks like for you?
You need a brand new URL when you try with the VPN. Currency conversion is only offered the first time you load the Checkout URL so if you load, don't see it, then use a VPN and load again it won't work
Humm, I will try it
And there's one more thing still on this same topic
How do I retrieve the converted price in a different currency so I can display it on my website?
Because on my site when people select the amount of products they want to purchase I need to display the price on their local currency right away instead of they only seeing it once they navigate to the stripe checkout page
you can't really. This is a feature specific to our Checkout product and purely internal. You can't have your own preview upfront
Not even if I use embedded stripe UI on my site?
If you use PricingTable (assuming that's what you meant) then it should "just work" yes, you don't need to do anything specific. If you have a URL where you have PricingTable integrated, we can show you what we see from another country
I'm still not familiar with the PricingTable concept. My use case is that I have one single product with a unitary price and people can purchase anything between 1 and 100,000 units, so I need them to see the price on their local currency (amount * unity_price) as they select their desired amount
yeah I don't think any of this is really possible. Just send them to Checkout and let them pick the quantity there
I see
I have come up with an workaround which is handle currency conversions on my own service, then whenever a user starts a checkout session I will send the create checkout session request with price_data option so it creates a new Price instance in Stripe with the current exchange rate that I have. This will lead to me having 1 Price per Checkout Session. Would this be a problem that would lead to my account being limited?
no that is totally fine