Payfort : Charge Amount -> Must be an integer

645 views Asked by At

Why payfort(Payment Gateway) only accept integer for Charge or Refund Amount? What in case if I Choose currency->USD and want to receive an amount in decimal (20.50$)

Error :

{
"amount": [
"must be an integer"
],
"card": []
}
1

There are 1 answers

0
mjwills On BEST ANSWER

Payfort takes amounts in cents. So if you want $20.50, pass through the value of:

2050