From 2e7de6c4709980a6518bc5785b40341ed3919588 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Tue, 8 Jun 2021 10:29:43 +1000 Subject: [PATCH] Fixes for Paypal --- app/PaymentDrivers/PayPalExpressPaymentDriver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/PaymentDrivers/PayPalExpressPaymentDriver.php b/app/PaymentDrivers/PayPalExpressPaymentDriver.php index b6bd1957ad..e007ebaaf5 100644 --- a/app/PaymentDrivers/PayPalExpressPaymentDriver.php +++ b/app/PaymentDrivers/PayPalExpressPaymentDriver.php @@ -187,7 +187,7 @@ class PayPalExpressPaymentDriver extends BaseDriver 'cancelUrl' => $this->client->company->domain() . '/client/invoices', 'description' => implode(',', collect($this->payment_hash->data->invoices) ->map(function ($invoice) { - return sprintf('%s: %s', ctrans('texts.invoice_number'), $invoice->number); + return sprintf('%s: %s', ctrans('texts.invoice_number'), $invoice->invoice_number); })->toArray()), 'transactionId' => $this->payment_hash->hash . '-' . time(), 'ButtonSource' => 'InvoiceNinja_SP',