mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fixes for token billing - payfast
This commit is contained in:
parent
3fe45ac7c6
commit
57852a6ca4
@ -88,13 +88,16 @@ class Token
|
|||||||
$body = [
|
$body = [
|
||||||
'amount' => $amount,
|
'amount' => $amount,
|
||||||
'item_name' => 'purchase',
|
'item_name' => 'purchase',
|
||||||
'item_description' => ctrans('texts.invoices') . ': ' . collect($payment_hash->invoices())->pluck('invoice_number'),
|
|
||||||
'm_payment_id' => $payment_hash->hash,
|
'm_payment_id' => $payment_hash->hash,
|
||||||
'passphrase' => $this->payfast->company_gateway->getConfigField('passphrase'),
|
|
||||||
];
|
];
|
||||||
|
|
||||||
$header['signature'] = $this->genSig(array_merge($header, $body));
|
$header['signature'] = $this->genSig(array_merge($header, $body));
|
||||||
|
|
||||||
|
$body = array_merge($body,[
|
||||||
|
'item_description' => ctrans('texts.invoices') . ': ' . collect($payment_hash->invoices())->pluck('invoice_number'),
|
||||||
|
'passphrase' => $this->payfast->company_gateway->getConfigField('passphrase'),
|
||||||
|
]);
|
||||||
|
|
||||||
nlog($header['signature']);
|
nlog($header['signature']);
|
||||||
nlog($header['timestamp']);
|
nlog($header['timestamp']);
|
||||||
nlog($this->payfast->company_gateway->getConfigField('merchantId'));
|
nlog($this->payfast->company_gateway->getConfigField('merchantId'));
|
||||||
|
@ -77,7 +77,7 @@ class PayFastPaymentDriver extends BaseDriver
|
|||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|
||||||
} catch(Exception $e) {
|
} catch(\Exception $e) {
|
||||||
|
|
||||||
echo '##PAYFAST## There was an exception: '.$e->getMessage();
|
echo '##PAYFAST## There was an exception: '.$e->getMessage();
|
||||||
|
|
||||||
|
@ -97,7 +97,7 @@ class PaymentLibrariesSeeder extends Seeder
|
|||||||
|
|
||||||
Gateway::query()->update(['visible' => 0]);
|
Gateway::query()->update(['visible' => 0]);
|
||||||
|
|
||||||
Gateway::whereIn('id', [1,7,15,20,39,46,55,50,57])->update(['visible' => 1]);
|
Gateway::whereIn('id', [1,7,11,15,20,39,46,55,50,57])->update(['visible' => 1]);
|
||||||
|
|
||||||
if (Ninja::isHosted()) {
|
if (Ninja::isHosted()) {
|
||||||
Gateway::whereIn('id', [20])->update(['visible' => 0]);
|
Gateway::whereIn('id', [20])->update(['visible' => 0]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user