#kikko088_best-practices

1 messages · Page 1 of 1 (latest)

tacit heartBOT
#

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

near osprey
#

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?

paper vale
#

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

near osprey
paper vale
#

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?

near osprey
paper vale
#

cool thanks!