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