#neto-dev_checkout-session-currencies

1 messages ยท Page 1 of 1 (latest)

tired depotBOT
#

๐Ÿ‘‹ 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/1400255030551904256

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

hollow rose
#

HI ๐Ÿ‘‹

Can you post just the ID of the Checkout Session?

floral wyvern
#

cs_test_b1REGRffkJGlTYiam0ZdyxzmTbQzLs0WTpIOXbgT5IaxPfO7syjm7Ya8PE

hollow rose
#

Thanks, taking a look

floral wyvern
#

yes

#

outher question im developing an international subscription model and for that I have products in ARS and BRL. When I identify that my client is Brazilian I send them to the BRL products checkout, if they're American to USD products. Do you think this way I structured it would work?

hollow rose
#

I think the problem is that your Price is in ARS but the Card is from Spain.

#

I think you'd need to use an Argentina card like this 4000000320000021

floral wyvern
hollow rose
#

Give that card number a try and see if it works

floral wyvern
#

I tried to use adaptive pricing but it's not possible to create subscriptions, right?

hollow rose
#

Do you know the country of your Customer's credit card at the time of checkout?

#

If you don't, you could use the Checkout Session in mode: "setup" to save their Credit Card info first and then match to the right Price based on the billing_details.country

floral wyvern
#

I get their location through the browser, for now I'm going to run ads in Argentina so I'll create a product in ARS

hollow rose
#

Gotcha. I think that would work for most of the time but, if some customers have credit cards where the billing address is in another country, that might not work.

floral wyvern
#

How would I do this? Can you explain it to me in detail? I'll have a subscription system with 3 monthly plans and 3 annual plans, how is it done so the customer pays in their country and starts a subscription?

hollow rose
#

You would do what I mentioned earlier

  • Create a Checkout Session in mode: "setup" <- this will save the card and the billing details for the Customer
  • Check the billing_details.country to determine what country the Customer's card is registered in
  • Use that country to select which Price you should subscribe the Customer to
  • Create a Subscription with that Customer & Payment Method.
floral wyvern
#

Hmm, I think I understood, I just got confused about the order of actions.

In the first checkout it would be common where the user would input their card data and address. And they would click on "Make payment"

How would I do to "select which Price you should subscribe the Customer"?

hollow rose
#

Well you have different prices for different currencies, right?

floral wyvern
#

Yess

hollow rose
floral wyvern
#

Hmm, I'll take a look at that, thanks for the help, talking to you is always enlightening, add me on your personal discord, maybe we can talk about something other than work hahaha

hollow rose
#

This is my only presence on Discord but I'm happy to shed what ๐Ÿ’ก I can ๐Ÿ™‚