mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 17:24:29 -04:00
PayFast API token billing
This commit is contained in:
parent
b152221854
commit
5bbeaaba60
@ -93,10 +93,15 @@ class Token
|
|||||||
// $header['signature'] = md5( $this->generate_parameter_string(array_merge($header, $body), false) );
|
// $header['signature'] = md5( $this->generate_parameter_string(array_merge($header, $body), false) );
|
||||||
|
|
||||||
// $result = $this->send($header, $body, $cgt->token);
|
// $result = $this->send($header, $body, $cgt->token);
|
||||||
|
$api = new \PayFast\PayFastPayment(
|
||||||
|
[
|
||||||
|
'merchantId' => $this->company_gateway->getConfigField('merchantId'),
|
||||||
|
'passPhrase' => $this->company_gateway->getConfigField('passPhrase'),
|
||||||
|
'testMode' => $this->company_gateway->getConfigField('testMode')
|
||||||
|
]
|
||||||
|
);
|
||||||
|
|
||||||
|
$adhocArray = $api
|
||||||
$adhocArray = $this->payfast
|
|
||||||
->init()
|
|
||||||
->payfast
|
->payfast
|
||||||
->subscriptions
|
->subscriptions
|
||||||
->adhoc($cgt->token, ['amount' => $amount, 'item_name' => 'purchase']);
|
->adhoc($cgt->token, ['amount' => $amount, 'item_name' => 'purchase']);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user