#mistr-matt_code

1 messages · Page 1 of 1 (latest)

deft ospreyBOT
#

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

lime marsh
astral mason
#

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

lime marsh
astral mason
#

Wait, so I need to create a price with just GBP?

#

or a price tier where GBP is also in the list?

lime marsh
#

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

astral mason
#

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.

lime marsh
#

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?

astral mason
#

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

lime marsh
astral mason
#

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?

lime marsh
#

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

astral mason
#

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?

lime marsh
#

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.

astral mason
#

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

lime marsh
#

yep, Stripe automatically converts all incoming funds into the default currency

astral mason
#

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

lime marsh
#

it can be quite confusing! feel free to reach out again in case you're still running into issues 🍻

astral mason
#

Will do, thank you!