iamraphson / react-paystack

ReactJS library for implementing paystack payment gateway
https://www.npmjs.com/package/react-paystack
MIT License
445 stars 159 forks source link

why is the amount calculated in kobo #97

Closed john73-cloud closed 6 months ago

john73-cloud commented 7 months ago

i just want to know why the amount needs to be in the lowest currency value

lebu7 commented 6 months ago

multiply by 100

john73-cloud commented 6 months ago

i know that, i was just wondering if there was any reason for that because initially i did not notice it and i was investigating my code wondering why the amount was not accurate

lebu7 commented 6 months ago

its from paystack, they set the amount to the lowest unit of the currency you are using

john73-cloud commented 6 months ago

is there any reason for that because i spent almost a day looking at everything before noticing it in the documentation