mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 12:44:30 -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) );
|
||||
|
||||
// $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 = $this->payfast
|
||||
->init()
|
||||
$adhocArray = $api
|
||||
->payfast
|
||||
->subscriptions
|
||||
->adhoc($cgt->token, ['amount' => $amount, 'item_name' => 'purchase']);
|
||||
|
Loading…
x
Reference in New Issue
Block a user