From d66f9f4076ea7e7e96a65443de787e1eea56e1f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Mon, 24 May 2021 13:11:47 +0200 Subject: [PATCH] wip --- app/PaymentDrivers/PayPalExpressPaymentDriver.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/PaymentDrivers/PayPalExpressPaymentDriver.php b/app/PaymentDrivers/PayPalExpressPaymentDriver.php index d62c0b6f61a3..b6bd1957ad67 100644 --- a/app/PaymentDrivers/PayPalExpressPaymentDriver.php +++ b/app/PaymentDrivers/PayPalExpressPaymentDriver.php @@ -118,7 +118,7 @@ class PayPalExpressPaymentDriver extends BaseDriver $this->initializeOmnipayGateway(); $response = $this->omnipay_gateway - ->completePurchase(['amount' => $this->payment_hash->data->amount]) + ->completePurchase(['amount' => $this->payment_hash->data->amount, 'currency' => $this->client->getCurrencyCode()]) ->send(); if ($response->isCancelled()) { @@ -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->invoice_number); + return sprintf('%s: %s', ctrans('texts.invoice_number'), $invoice->number); })->toArray()), 'transactionId' => $this->payment_hash->hash . '-' . time(), 'ButtonSource' => 'InvoiceNinja_SP',