#lucas-soares_api
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/1341396572147023972
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
You are probably looking for this:
https://docs.stripe.com/payments/checkout/adaptive-pricing?payment-ui=stripe-hosted
Ok thanks
Does this conversion apply to discounts too?
Yes it's applied to the amount due
Ok, nice
Can you clear my doubt?
I activated the adaptive pricing option at checkout. But do I need to configure something when I create the payment link? pass any parameters?
Currently I look like this:
const sessionParams = {
mode: 'subscription',
customer: customer.id,
line_items: [
{
price: priceId,
quantity: 1
},
],
success_url: `${url_Current}/#/plans?success=true`,
cancel_url: `${url_Current}/#/plans`,
...(discounts.length > 0 ? { discounts: discounts } : {}),
...(allowPromotionCodes ? { allow_promotion_codes: true } : {}),
subscription_data: {
trial_settings: {
end_behavior: {
missing_payment_method: 'cancel',
},
},
trial_period_days: 7,
}
};
No nothing, you can check this part in order to test it:
https://docs.stripe.com/payments/checkout/adaptive-pricing?payment-ui=stripe-hosted#testing-checkout
I activated it in a test environment, and generated it with an email with the location PT. But he didn't convert:
Hi taking over here. Looking
Ok, thanks
Doesn't look like BRL is a supported currency: https://docs.stripe.com/payments/checkout/adaptive-pricing?payment-ui=stripe-hosted#supported-currencies-na
No, Brazil BRL is South America. It seems like there is
Yeah, not problem
cs_test_b1PkmyXl1QceIwgblyY1Uw0Se5AGPI71MD4yipMFkCvhtflpAOOz9l5YaC
If you need I can send the link
I am creating a client with this email with the location.
And when I create the checkout I pass the customer_id
ohh no
that's right
I think I'll have to create a separate price for another currency.
And I would pass the price Id depending on the customer's region, I will need to do this for discounts too...
Yes unfortunately that's what you'll need to do in this case