#ShubhamDev

1 messages · Page 1 of 1 (latest)

glacial crestBOT
covert cosmos
#

How we can get price in stripe.products.list api?

still vigil
#

Hi! Let me help you with this.

covert cosmos
#

When we are using prices.retreive api there I am getting unit_amount = 2900 but I set 29 usd

#

Could you please help me on this

#

@still vigil ?

still vigil
#

This means that if a currency, in this case USD, has cents, we specify it as amount of cents.
This makes $29 to be represented as amount: 2900 in our API.

covert cosmos
#

Should I need to divisible by 100 ?

#

to show in frontend as $29 ?

still vigil
#

Yes

covert cosmos
#

Okay Thanks!

still vigil
#

Happy to help. Let me know if you have any other questions.