From 315f4e10957c6fd1d1b872bd47b0db1290c09d0a Mon Sep 17 00:00:00 2001 From: Lars Kusch Date: Mon, 16 Jan 2023 15:37:26 +0100 Subject: [PATCH] More fixes --- app/PaymentDrivers/Stripe/BACS.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/PaymentDrivers/Stripe/BACS.php b/app/PaymentDrivers/Stripe/BACS.php index a70fd0c48c38..03f0c4d7f7d0 100644 --- a/app/PaymentDrivers/Stripe/BACS.php +++ b/app/PaymentDrivers/Stripe/BACS.php @@ -125,9 +125,10 @@ class BACS 'amount' => $this->stripe->convertFromStripeAmount($payment_id->amount, $this->stripe->client->currency()->precision, $this->stripe->client->currency()), 'transaction_reference' => $payment_id['id'], 'gateway_type_id' => GatewayType::BACS, + 'invoices' => collect($this->stripe->payment_hash->invoices()), ]; - $this->stripe->payment_hash->data = array_merge((array) $payment_id, ['amount' => $data['amount'], 'invoices' => collect($this->stripe->payment_hash->invoices())]); + $this->stripe->payment_hash->data = array_merge((array) $payment_id, $data); $this->stripe->payment_hash->save(); $payment = $this->stripe->createPayment($data, Payment::STATUS_PENDING);