Working on Payfast ITN

This commit is contained in:
Hillel Coren 2017-10-24 17:43:57 +03:00
parent 9a6d8e4c6a
commit 87e9c60f3b
3 changed files with 13 additions and 0 deletions

View File

@ -162,6 +162,10 @@ class Gateway extends Eloquent
*/
public function getHelp()
{
if ($this->id == GATEWAY_PAYFAST) {
return trans('texts.gateway_help_' . $this->id);
}
$link = '';
if ($this->id == GATEWAY_AUTHORIZE_NET) {

View File

@ -8,6 +8,14 @@ class PayFastPaymentDriver extends BasePaymentDriver
{
protected $transactionReferenceParam = 'm_payment_id';
protected function paymentDetails($paymentMethod = false)
{
$data = parent::paymentDetails();
$data['notifyUrl'] = $this->invitation->getLink('complete', true);
return $data;
}
public function completeOffsitePurchase($input)
{
parent::completeOffsitePurchase([

View File

@ -2505,6 +2505,7 @@ $LANG = array(
'videos' => 'Videos',
'video' => 'Video',
'return_to_invoice' => 'Return to Invoice',
'gateway_help_13' => 'To use ITN leave the PDT Key field blank.',
);