#_sidharth

1 messages · Page 1 of 1 (latest)

jovial terraceBOT
faint zealot
#

👋 happy to help

median ruin
#

hey tarzan

faint zealot
#

basically we store the amount with the 2 decimal points as an integer

#

so we multiply it by 100

median ruin
#

but im using payment_id to checkout

#

dashboard creates any amount with .00

faint zealot
#

we store the amount in cents

#

regardless of where you created the price

median ruin
#

ya so how can this be solved? cuz in my code , im not giving a integer in the price field of Checkout instead the priceId

faint zealot
#

I think I should be clearer

#

if you're creating a price on the dashboard for $100, you will enter $100.00 and we store it as 10000
if you're creating a price using the API for $100, you will pass in unit_amount: 100000

#

so what you're seeing 200000 corresponds to the price you already have

median ruin
#

ooh aight got it..thanks

faint zealot
#

let me know if you need any more help

median ruin
#

thats all ..thanks!