Search code examples
c#validationpayfort

Payfort : Charge Amount -> Must be an integer


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": []
}

Solution

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

    2050