mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Minor fixes for Payfast
This commit is contained in:
parent
82b423442f
commit
fd136a93ab
@ -91,7 +91,7 @@ class Token
|
||||
'passphrase' => $this->payfast->company_gateway->getConfigField('passphrase'),
|
||||
];
|
||||
|
||||
$header['signature'] = $this->payfast->genSig(array_merge($header, $body));
|
||||
$header['signature'] = $this->genSig(array_merge($header, $body));
|
||||
|
||||
$result = $this->send($header, $body, $cgt->token);
|
||||
|
||||
|
@ -72,6 +72,7 @@ class PayFastPaymentDriver extends BaseDriver
|
||||
{
|
||||
|
||||
try{
|
||||
|
||||
$this->payfast = new PayFastPayment(
|
||||
[
|
||||
'merchantId' => $this->company_gateway->getConfigField('merchantId'),
|
||||
@ -80,8 +81,11 @@ class PayFastPaymentDriver extends BaseDriver
|
||||
'testMode' => $this->company_gateway->getConfigField('testMode')
|
||||
]
|
||||
);
|
||||
|
||||
} catch(Exception $e) {
|
||||
|
||||
echo '##PAYFAST## There was an exception: '.$e->getMessage();
|
||||
|
||||
}
|
||||
|
||||
return $this;
|
||||
|
Loading…
x
Reference in New Issue
Block a user