"amount":["A valid integer is required."]
Hello,
To avoid the error: "amount":["A valid integer is required."]
I change in this file: Biller\Connect\Service\Order\MakeRequest.php
The line:"
'amount' => ($forceBaseCurr) ? ($quote->getBaseGrandTotal() * 100) : ($quote->getGrandTotal() * 100),
For:
'amount' => ($forceBaseCurr) ? (intval(round($quote->getBaseGrandTotal() * 100))) : (intval(round($quote->getGrandTotal() * 100))),
I believe that some tax setting or module makes our prices four decimals, and therefore things like * 100 still end up with non-integers.
Rounding that and forcing a type change to integer fixes that.
Kind regards,
Daan