From 17a2f99aad3ff5113aa6392acaff171d2100eafa Mon Sep 17 00:00:00 2001 From: David Bomba Date: Mon, 7 Nov 2022 12:48:24 +1100 Subject: [PATCH] GoCardless Intant Bank Pay --- app/PaymentDrivers/GoCardless/InstantBankPay.php | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/app/PaymentDrivers/GoCardless/InstantBankPay.php b/app/PaymentDrivers/GoCardless/InstantBankPay.php index e118de9ec5da..b425513b5024 100644 --- a/app/PaymentDrivers/GoCardless/InstantBankPay.php +++ b/app/PaymentDrivers/GoCardless/InstantBankPay.php @@ -59,10 +59,11 @@ class InstantBankPay implements MethodInterface 'description' => ctrans('texts.invoices').': '.collect($data['invoices'])->pluck('invoice_number'), 'amount' => (string) $data['amount_with_fee'] * 100, 'currency' => $this->go_cardless->client->getCurrencyCode(), - ], - 'metadata' => [ + 'metadata' => [ 'payment_hash' => $this->go_cardless->payment_hash->hash, + ], ], + ], ]); @@ -72,14 +73,17 @@ class InstantBankPay implements MethodInterface 'company_key' => $this->go_cardless->company_gateway->company->company_key, 'company_gateway_id' => $this->go_cardless->company_gateway->hashed_id, 'hash' => $this->go_cardless->payment_hash->hash, - ]), - 'links' => [ - 'billing_request' => $billing_request->id, ], 'metadata' => [ 'payment_hash' => $this->go_cardless->payment_hash->hash, ], ], + + ), + 'links' => [ + 'billing_request' => $billing_request->id, + ], + ]); $this->go_cardless->payment_hash