diff --git a/app/Models/Gateway.php b/app/Models/Gateway.php index 1ea05337b475..c8fd30432902 100644 --- a/app/Models/Gateway.php +++ b/app/Models/Gateway.php @@ -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) { diff --git a/app/Ninja/PaymentDrivers/PayFastPaymentDriver.php b/app/Ninja/PaymentDrivers/PayFastPaymentDriver.php index 6016afe39458..8d2e936fa253 100644 --- a/app/Ninja/PaymentDrivers/PayFastPaymentDriver.php +++ b/app/Ninja/PaymentDrivers/PayFastPaymentDriver.php @@ -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([ diff --git a/resources/lang/en/texts.php b/resources/lang/en/texts.php index c1e3d52f152f..840b63a24971 100644 --- a/resources/lang/en/texts.php +++ b/resources/lang/en/texts.php @@ -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.', );