mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Turning on token billing for PayFast
This commit is contained in:
parent
8bc36a7c70
commit
210a4a5993
@ -86,11 +86,11 @@ 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'),
|
'item_description' => ctrans('texts.invoices') . ': ' . collect($payment_hash->invoices())->pluck('invoice_number'),
|
||||||
'm_payment_id' => $payment_hash->hash,
|
'm_payment_id' => $payment_hash->hash,
|
||||||
];
|
];
|
||||||
|
|
||||||
$header['signature'] = $this->generate_parameter_string(array_merge($header, $body));
|
$header['signature'] = md5( $this->generate_parameter_string(array_merge($header, $body)) );
|
||||||
|
|
||||||
$result = $this->send($header, $body, $cgt->token);
|
$result = $this->send($header, $body, $cgt->token);
|
||||||
|
|
||||||
@ -168,7 +168,9 @@ class Token
|
|||||||
$parameter_string = rtrim( $parameter_string, '&' );
|
$parameter_string = rtrim( $parameter_string, '&' );
|
||||||
}
|
}
|
||||||
|
|
||||||
return md5( $parameter_string );
|
nlog($parameter_string);
|
||||||
|
|
||||||
|
return $parameter_string;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user