#Marco Túlio Rocha-product-currency

1 messages · Page 1 of 1 (latest)

lean crypt
#

Hello! For the most part, you're expected to convert these prices yourself if you want to preesnt in BRL to your customers

strong pier
#

With the current values in USD, the stripe platform can't do this conversion for me?

lean crypt
#

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

strong pier
#

the correct thing would be to create a new price for the same product in BRL, right?

lean crypt
#

Yup!

strong pier
#

Could I pass the price, quantity and currency directly to the services?

lean crypt
#

Yes, that's what we expect you to do for Checkout and Invoices

strong pier
#

confirming...

instead of passing the priceID, would I be able to pass the price, amount and currency directly to the services?

lean crypt
#

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

strong pier
#

ok

#

line_items: [
price_data: {
product: 'XXX',
currency: 'brl',
unit_amount: 1000,
recurring: 'month'
}
]

right?

lean crypt
#

👍 That looks correct to me

strong pier
#

ok, thks

#

can i do the same in stripe.subscriptions.create ?

lean crypt
strong pier
#

using in stripe.checkout.sessions.create, what is the error ?

lean crypt
strong pier
#

I couldn't understand what could be wrong 😦

lean crypt
#

You need to do

line_items: [
  {
    price_data: {
      product: 'prod_xxx',
      currency: 'brl',
      unit_amount; 1000,
      recurring: [Object]
    }
  }
]
strong pier