#kikko088_best-practices
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/1300919020869910673
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Correct, adaptive prices don't work with checkout in subscription mode yet
https://docs.stripe.com/payments/checkout/adaptive-pricing#restrictions
In this case, you can create different currency prices for the product - https://docs.stripe.com/payments/checkout/manual-currency-prices
Can you say more about
I'm using both the checkout for the first purchase and the billing portal for any upgrade, the second doesn't seems to accept a currency, how can I select the currency in this case?
Do you mean customer portal doesn't show localized pricing?
I mean that I can't pass a currency like I do for a checkout session
so I suppose I can't see the price in different currency
this is the code I'm using:
{
customer: args.customer.id,
return_url: `${env.FRONTEND_URL}/admin/checkout`,
configuration: args.configuration.id,
flow_data: {
type: "subscription_update_confirm",
subscription_update_confirm: {
subscription: args.subscription.id,
items: [
{
id: args.subscription.items.data[0].id,
price: args.plan.stripeProductPriceId,
quantity: 1,
},
],
},
after_completion: {
type: "redirect",
redirect: {
return_url: `${env.FRONTEND_URL}/admin`,
},
},
},
}
actually, I'll send the priceId so it shoulnd't matter the currency
As far as i know, customer portal automatically determines the currency based on the currency set on the customer object
https://docs.stripe.com/api/customers/object#customer_object-currency
When you create a subscription in a specific currency, the customer assumes that as default currency
oh ok, that's make sense, I'll give it a go, do you know if there is a plan to support adaptive price for subs?
I think its in the works but I don't know a ton about it since its quite new.. You can reach out to email mentioned here in case you want to be looped in once there's a beta or something - https://docs.stripe.com/payments/checkout/manual-currency-prices#:~:text=Adaptive Pricing isn’t yet supported for your business or Checkout configuration (reach out to adaptive-pricing-beta%40stripe.com for beta inquiries).
cool thanks!