#neto-dev_checkout-session-currencies
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/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.
- neto-dev_webhooks, 1 day ago, 13 messages
- neto-dev_webhooks, 1 day ago, 10 messages
- neto-dev_connect-webhook-events, 2 days ago, 31 messages
- neto-dev_webhooks, 2 days ago, 13 messages
HI ๐
Can you post just the ID of the Checkout Session?
cs_test_b1REGRffkJGlTYiam0ZdyxzmTbQzLs0WTpIOXbgT5IaxPfO7syjm7Ya8PE
Thanks, taking a look
This is a test transaction. Did you use one of our Test cards? https://docs.stripe.com/testing
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?
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
Perfect, I used the right card and it worked, what do you think of this solution?
Give that card number a try and see if it works
I tried to use adaptive pricing but it's not possible to create subscriptions, right?
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
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
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.
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?
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.countryto 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.
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"?
Well you have different prices for different currencies, right?
Yess
Okay so, after you save the Customer's credit card, you look up the country it is associated with. This is in the card.country property https://docs.stripe.com/api/payment_methods/object#payment_method_object-card-country
You identify which currency is used by that country and select the Price that matches.
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
This is my only presence on Discord but I'm happy to shed what ๐ก I can ๐