mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -04:00
Fix for PayPal 'item amounts do not match'
This commit is contained in:
parent
8957b30fb2
commit
b013e1c7d1
@ -348,6 +348,11 @@ class BasePaymentDriver
|
|||||||
$total = 0;
|
$total = 0;
|
||||||
|
|
||||||
foreach ($invoice->invoice_items as $invoiceItem) {
|
foreach ($invoice->invoice_items as $invoiceItem) {
|
||||||
|
// Some gateways require quantity is an integer
|
||||||
|
if (floatval($invoiceItem->qty) != intval($invoiceItem->qty)) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
$item = new Item([
|
$item = new Item([
|
||||||
'name' => $invoiceItem->product_key,
|
'name' => $invoiceItem->product_key,
|
||||||
'description' => $invoiceItem->notes,
|
'description' => $invoiceItem->notes,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user