#camudo_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/1362154057489453286
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello there
So I think you have things backward here -- you are setting your Price as USD here but instead you would set the Price in your local currency (BRL) and then adaptive pricing means it would be converted to USD automatically for a US-based customer.
I'd recommend you test this out in test mode as we show here: https://docs.stripe.com/payments/checkout/adaptive-pricing?payment-ui=stripe-hosted#testing-checkout
thank you for the quick response, would you know if theres a way for me to specify the price in USD? kinda like saying to stripe to treat my local currency as .. usd instead of brl maybe?
i say this because my app includes a form where the user can input for example, $2.50. The app is english only and use dollars. (even though my local currency may be BRL in stripe) Then, i get the amount in cents the user inputted and create a checkout session with that:
line_items: [{
price_data: {
currency: "usd",
product_data: {
name: "Credits",
},
unit_amount: amount,
},
quantity: 1,
}],
tldr i would like to be able to specify the currency in usd, then have adaptive pricing let the users pay however they need
No that's not possible. If you specify in a different presentment currency than your local currency (like USD) then that is the only currency the customer will be able to pay in and still only with your supported payment method types. You would then receive the funds in your settlement currency (BRL) as they are then converted upon the Charge occurring. A Brazil account can't support charging in ACH Debit as an example.
Yeah it seems that my problem should be fixed by having another stripe account then (would you recommend that, or an alternate way, btw?).
This one need to be Brazil because we already have another products using it, not this english/dollars one only.
so... it seems my best shot would probably be to receive input as dollars, convert it to BRL using some API then create the checkout with that value... thank you a lot for the help tho, will try it out and see if the adaptive pricing works now.
Sure thing. Adaptive Pricing here won't allow for US-based payment methods though. If you want that then yes you would want to create a new US-based account.
since i now have created a checkout with BRL as the currency, shouldn't i be able to see adaptive pricing options somewhere here now?
You need to use the correct email address in test mode to simulate this unless you are located in the US?
i'm not using test mode
You should use the email test+location_US@example.com
In test mode
Are you located in the US?
No, im located in brazil
Adaptive Pricing is based on the customer location
oh okay
So in live mode it isn't going to localize for you. But you can still test this in test mode as mentioned above