GoCardless Intant Bank Pay

This commit is contained in:
David Bomba 2022-11-07 12:48:24 +11:00
parent 65c7baeec7
commit 17a2f99aad

View File

@ -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