Fix for PayPal

This commit is contained in:
Hillel Coren 2018-03-18 13:15:15 +02:00
parent 996abcc560
commit 3ce6412a63

View File

@ -316,7 +316,8 @@ class BasePaymentDriver
if ($this->isGateway(GATEWAY_SAGE_PAY_DIRECT) || $this->isGateway(GATEWAY_SAGE_PAY_SERVER)) {
$items = null;
} else {
$items = $this->paymentItems();
//$items = $this->paymentItems();
$items = null;
}
$response = $gateway->purchase($data)
->setItems($items)
@ -371,7 +372,7 @@ class BasePaymentDriver
$item = new Item([
'name' => $invoiceItem->product_key,
'description' => $invoiceItem->notes,
'description' => substr($invoiceItem->notes, 0, 100),
'price' => $invoiceItem->cost,
'quantity' => $invoiceItem->qty,
]);