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, + ], ], ]);