#camudo_api

1 messages ¡ Page 1 of 1 (latest)

forest cloakBOT
#

👋 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.

twilit narwhal
#

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.

molten crest
# twilit narwhal So I think you have things backward here -- you are setting your Price as USD he...

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

twilit narwhal
#

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.

molten crest
#

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.

twilit narwhal
#

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.

molten crest
#

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?

twilit narwhal
#

You need to use the correct email address in test mode to simulate this unless you are located in the US?

molten crest
#

i'm not using test mode

twilit narwhal
#

You should use the email test+location_US@example.com

#

In test mode

#

Are you located in the US?

molten crest
#

No, im located in brazil

twilit narwhal
#

Adaptive Pricing is based on the customer location

molten crest
#

oh okay

twilit narwhal
#

So in live mode it isn't going to localize for you. But you can still test this in test mode as mentioned above