#Marco Túlio Rocha-product-currency
1 messages · Page 1 of 1 (latest)
Hello! For the most part, you're expected to convert these prices yourself if you want to preesnt in BRL to your customers
With the current values in USD, the stripe platform can't do this conversion for me?
Right now we don't support presenting a price in different currencies/doing that conversion automatically - we have future improvements planned for this, but as of right now you'll have to do the conversion yourself
the correct thing would be to create a new price for the same product in BRL, right?
Yup!
Could I pass the price, quantity and currency directly to the services?
Yes, that's what we expect you to do for Checkout and Invoices
confirming...
instead of passing the priceID, would I be able to pass the price, amount and currency directly to the services?
Ah, sorry I misinterpreted your ask initially - yes, instead of passing a price ID you can pass in price_data with all the necessary information
ok
line_items: [
price_data: {
product: 'XXX',
currency: 'brl',
unit_amount: 1000,
recurring: 'month'
}
]
right?
👍 That looks correct to me
Yes, you should also be able to do the same with Subscriptions - you can always check our API ref https://stripe.com/docs/api/subscriptions/create#create_subscription-items-price_data
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
You need to nest product, currency, unit_amount, and recurring under price_data (see https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-line_items-price_data)
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I couldn't understand what could be wrong 😦
You need to do
line_items: [
{
price_data: {
product: 'prod_xxx',
currency: 'brl',
unit_amount; 1000,
recurring: [Object]
}
}
]
🥲