mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 13:14:30 -04:00
Turning on token billing for PayFast
This commit is contained in:
parent
c0d7b07f17
commit
d2735df1c3
@ -86,12 +86,16 @@ class Token
|
|||||||
$body = [
|
$body = [
|
||||||
'merchant_id' => $this->payfast->company_gateway->getConfigField('merchantId'),
|
'merchant_id' => $this->payfast->company_gateway->getConfigField('merchantId'),
|
||||||
'merchant_key' => $this->payfast->company_gateway->getConfigField('merchantKey'),
|
'merchant_key' => $this->payfast->company_gateway->getConfigField('merchantKey'),
|
||||||
'passphrase' => $this->payfast->company_gateway->getConfigField('passPhrase'),
|
'return_url' => route('client.payment_methods.index'),
|
||||||
|
'cancel_url' => route('client.payment_methods.index'),
|
||||||
|
'notify_url' => $this->payfast->genericWebhookUrl(),
|
||||||
|
'm_payment_id' => $payment_hash->hash,
|
||||||
'amount' => $amount,
|
'amount' => $amount,
|
||||||
'item_name' => 'purchase',
|
'item_name' => 'purchase',
|
||||||
'm_payment_id' => $payment_hash->hash,
|
'item_description' => 'Purchase',
|
||||||
// 'item_description' => ctrans('texts.invoices') . ': ' . collect($payment_hash->invoices())->pluck('invoice_number'),
|
'subscription_type' => 1,
|
||||||
// 'passphrase' => $this->payfast->company_gateway->getConfigField('passphrase'),
|
'passphrase' => $this->payfast->company_gateway->getConfigField('passphrase'),
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|
||||||
$header['signature'] = $this->payfast->generateSignature($body);
|
$header['signature'] = $this->payfast->generateSignature($body);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user