mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fixes for base driver
This commit is contained in:
parent
1ca4eaba7b
commit
c19d088bd9
@ -92,12 +92,12 @@ class CreditCard
|
|||||||
'notify_url' => $this->payfast->genericWebhookUrl(),
|
'notify_url' => $this->payfast->genericWebhookUrl(),
|
||||||
'amount' => 5,
|
'amount' => 5,
|
||||||
'item_name' => 'pre-auth',
|
'item_name' => 'pre-auth',
|
||||||
'item_description' => 'Pre authorization',
|
|
||||||
'subscription_type' => 2,
|
'subscription_type' => 2,
|
||||||
'passphrase' => $this->payfast->company_gateway->getConfigField('passphrase'),
|
'passphrase' => $this->payfast->company_gateway->getConfigField('passphrase'),
|
||||||
];
|
];
|
||||||
|
|
||||||
$data['signature'] = $this->payfast->generateSignature($data);
|
$data['signature'] = $this->payfast->generateSignature($data);
|
||||||
|
nlog($data['signature']);
|
||||||
$data['gateway'] = $this->payfast;
|
$data['gateway'] = $this->payfast;
|
||||||
$data['payment_endpoint_url'] = $this->payfast->endpointUrl();
|
$data['payment_endpoint_url'] = $this->payfast->endpointUrl();
|
||||||
|
|
||||||
|
@ -136,6 +136,7 @@ class PayFastPaymentDriver extends BaseDriver
|
|||||||
if( $passPhrase !== null ) {
|
if( $passPhrase !== null ) {
|
||||||
$getString .= '&passphrase='. urlencode( trim( $passPhrase ) );
|
$getString .= '&passphrase='. urlencode( trim( $passPhrase ) );
|
||||||
}
|
}
|
||||||
|
nlog($getString);
|
||||||
return md5( $getString );
|
return md5( $getString );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user