#mistr-matt_code
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/1494233238070231102
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
hi there, can you share the request id [0] where you've created that Checkout Session? it’ll have the prefix req_
[0] https://support.stripe.com/questions/finding-the-id-for-an-api-request
this ID for example req_WdgOHXstTd6bVC is from a user from the US I think where it still shows in euro
I made a new proce tier with multiple valuta's
where I would expect that on checkout it would just auto pick the correct one
but the docs are really confusing on what the actual flow is in my case
Adaptive Pricing requires the currency for your prices to be one of your settlement currencies.
your account only currently has GBP as one of it's settlement currencies, but price_1TJfnmGlbLzqMjMm3oWihUTm is configured for EUR. Can you try with a GBP price and see if it works?
Wait, so I need to create a price with just GBP?
or a price tier where GBP is also in the list?
for the example you shared, you only had a single currency / tier right? can you create a price with just GBP to see if it works first
okay so this is what I currently configured:
2 price tiers where one is just GBP and one is EUR, (Already have 4 subs on the EUR price tier so cant delete this one)
I apologize if Im making things confusing, but Im having a hard time understanding the terms that are used throughout the stripe docs.
no worries. So what you're showing are not tiers, but what we call prices. The first one in the screenshot is a GBP price, can you create a Checkout Sessions with that first price?
So I have one product, which currently 2 tarifs/price attached. (These you see in the screenshot).
They are set to recurring monthly.
I have adaptive pricing enabled on my account, which I expected it would just overrule the entire pricing I created that only had the EUR currency. and use the 3 EUR as the "base" to convert to other currencies.
When you say create a checkou session with that first price does that mean I need to pass the priceId with my checkout?
Currently in my backend all I use is the productId, I dont do anything with prices codewise
I would assume it just uses the default highlighted pricing then
When you say create a checkou session with that first price does that mean I need to pass the priceId with my checkout?
yes, that's correct.
In your Checkout Session creation, I can see that your integration is actually explicitly passing in a price id : https://dashboard.stripe.com/acct_1TGx4fGlbLzqMjMm/logs/req_WdgOHXstTd6bVC
right, you are correct, I apologize for that. get the default_price
if (!product.default_price) {
throw new Error(`Product ${this.productId} has no default price`);
}
cachedDefaultPriceId =
typeof product.default_price === 'string'
? product.default_price
: product.default_price.id;```
one sec
alright
so I tested this on my sandbox
I made my default currency to be GBP like my account
and now it does show adaptive pricing
so does that mean, to have adaptive pricing working I need to have my pricing tier to only have GBP, or whatever currency that is in line with my bank linked?
you need to have your price set to a settlement currency on your Stripe account. Settlement currency is the currency you, as the business, receive in your bank account : https://docs.stripe.com/payouts/multicurrency-settlement. It's possible to have multiple settlement currencies. Just that right now, you only have GBP configured for your Stripe account
So if I would have 3 settlement currencies, and I would only have a price with GBP, it would still have adaptive pricing as it matches one of my settlement currencies?
What happens if its configured for a currency that doesnt match my banking one?
So if I would have 3 settlement currencies, and I would only have a price with GBP, it would still have adaptive pricing as it matches one of my settlement currencies?
yes, correct - if you have 3 settlement currencies, and you have a price with GBP, it would have adaptive pricing as it matches one of your settlement currencies
What happens if its configured for a currency that doesnt match my banking one?
It would be the same situation as the example request you originally shared with me i.e. EUR was configured for the Price, but your Stripe account only supports GBP. Adaptive Pricing won't be applied.
How would that get paid then? does Stripe just convert the EUR to GBP when payout?
because I have 4 subs now that were paid in EUR
yep, Stripe automatically converts all incoming funds into the default currency
Got it!
well alex, thank you very very much because I was losing my mind over this lol
Love the easy access to support here
it can be quite confusing! feel free to reach out again in case you're still running into issues 🍻
Will do, thank you!