mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
GoCardless Intant Bank Pay
This commit is contained in:
parent
65c7baeec7
commit
17a2f99aad
@ -59,10 +59,11 @@ class InstantBankPay implements MethodInterface
|
|||||||
'description' => ctrans('texts.invoices').': '.collect($data['invoices'])->pluck('invoice_number'),
|
'description' => ctrans('texts.invoices').': '.collect($data['invoices'])->pluck('invoice_number'),
|
||||||
'amount' => (string) $data['amount_with_fee'] * 100,
|
'amount' => (string) $data['amount_with_fee'] * 100,
|
||||||
'currency' => $this->go_cardless->client->getCurrencyCode(),
|
'currency' => $this->go_cardless->client->getCurrencyCode(),
|
||||||
],
|
'metadata' => [
|
||||||
'metadata' => [
|
|
||||||
'payment_hash' => $this->go_cardless->payment_hash->hash,
|
'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_key' => $this->go_cardless->company_gateway->company->company_key,
|
||||||
'company_gateway_id' => $this->go_cardless->company_gateway->hashed_id,
|
'company_gateway_id' => $this->go_cardless->company_gateway->hashed_id,
|
||||||
'hash' => $this->go_cardless->payment_hash->hash,
|
'hash' => $this->go_cardless->payment_hash->hash,
|
||||||
]),
|
|
||||||
'links' => [
|
|
||||||
'billing_request' => $billing_request->id,
|
|
||||||
],
|
],
|
||||||
'metadata' => [
|
'metadata' => [
|
||||||
'payment_hash' => $this->go_cardless->payment_hash->hash,
|
'payment_hash' => $this->go_cardless->payment_hash->hash,
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
|
||||||
|
),
|
||||||
|
'links' => [
|
||||||
|
'billing_request' => $billing_request->id,
|
||||||
|
],
|
||||||
|
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$this->go_cardless->payment_hash
|
$this->go_cardless->payment_hash
|
||||||
|
Loading…
x
Reference in New Issue
Block a user