mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fix for PayPal
This commit is contained in:
parent
996abcc560
commit
3ce6412a63
@ -316,7 +316,8 @@ class BasePaymentDriver
|
|||||||
if ($this->isGateway(GATEWAY_SAGE_PAY_DIRECT) || $this->isGateway(GATEWAY_SAGE_PAY_SERVER)) {
|
if ($this->isGateway(GATEWAY_SAGE_PAY_DIRECT) || $this->isGateway(GATEWAY_SAGE_PAY_SERVER)) {
|
||||||
$items = null;
|
$items = null;
|
||||||
} else {
|
} else {
|
||||||
$items = $this->paymentItems();
|
//$items = $this->paymentItems();
|
||||||
|
$items = null;
|
||||||
}
|
}
|
||||||
$response = $gateway->purchase($data)
|
$response = $gateway->purchase($data)
|
||||||
->setItems($items)
|
->setItems($items)
|
||||||
@ -371,7 +372,7 @@ class BasePaymentDriver
|
|||||||
|
|
||||||
$item = new Item([
|
$item = new Item([
|
||||||
'name' => $invoiceItem->product_key,
|
'name' => $invoiceItem->product_key,
|
||||||
'description' => $invoiceItem->notes,
|
'description' => substr($invoiceItem->notes, 0, 100),
|
||||||
'price' => $invoiceItem->cost,
|
'price' => $invoiceItem->cost,
|
||||||
'quantity' => $invoiceItem->qty,
|
'quantity' => $invoiceItem->qty,
|
||||||
]);
|
]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user