From 3ce6412a6308ff81da2fb5d30cbecf1b4e7729d8 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Sun, 18 Mar 2018 13:15:15 +0200 Subject: [PATCH] Fix for PayPal --- app/Ninja/PaymentDrivers/BasePaymentDriver.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/Ninja/PaymentDrivers/BasePaymentDriver.php b/app/Ninja/PaymentDrivers/BasePaymentDriver.php index 462252d2a785..a3fc9cbeaef9 100644 --- a/app/Ninja/PaymentDrivers/BasePaymentDriver.php +++ b/app/Ninja/PaymentDrivers/BasePaymentDriver.php @@ -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, ]);