From 65c7baeec766a0ee103162046be5b7fecf20d5f9 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Mon, 7 Nov 2022 12:46:43 +1100 Subject: [PATCH] GoCardless Intant Bank Pay --- app/PaymentDrivers/GoCardless/InstantBankPay.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/PaymentDrivers/GoCardless/InstantBankPay.php b/app/PaymentDrivers/GoCardless/InstantBankPay.php index 5543a3992a3a..e118de9ec5da 100644 --- a/app/PaymentDrivers/GoCardless/InstantBankPay.php +++ b/app/PaymentDrivers/GoCardless/InstantBankPay.php @@ -60,6 +60,9 @@ class InstantBankPay implements MethodInterface 'amount' => (string) $data['amount_with_fee'] * 100, 'currency' => $this->go_cardless->client->getCurrencyCode(), ], + 'metadata' => [ + 'payment_hash' => $this->go_cardless->payment_hash->hash, + ], ], ]); @@ -73,6 +76,9 @@ class InstantBankPay implements MethodInterface 'links' => [ 'billing_request' => $billing_request->id, ], + 'metadata' => [ + 'payment_hash' => $this->go_cardless->payment_hash->hash, + ], ], ]);