From 46a74baff1b5422a515cb54924f55db80130c0e2 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Mon, 7 Nov 2022 12:52:17 +1100 Subject: [PATCH] GoCardless Intant Bank Pay --- app/PaymentDrivers/GoCardless/InstantBankPay.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/PaymentDrivers/GoCardless/InstantBankPay.php b/app/PaymentDrivers/GoCardless/InstantBankPay.php index 09860661883b..a5f8aafa7f21 100644 --- a/app/PaymentDrivers/GoCardless/InstantBankPay.php +++ b/app/PaymentDrivers/GoCardless/InstantBankPay.php @@ -59,7 +59,10 @@ 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' => [ + 'payment_hash' => $this->go_cardless->payment_hash->hash, + ], ], ]); @@ -73,9 +76,6 @@ class InstantBankPay implements MethodInterface 'links' => [ 'billing_request' => $billing_request->id, ], - 'metadata' => [ - 'payment_hash' => $this->go_cardless->payment_hash->hash, - ], ], ]);