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