diff --git a/app/PaymentDrivers/DriverTemplate.php b/app/PaymentDrivers/DriverTemplate.php index c38f126d8e..36c0f9bf5b 100644 --- a/app/PaymentDrivers/DriverTemplate.php +++ b/app/PaymentDrivers/DriverTemplate.php @@ -11,6 +11,7 @@ namespace App\PaymentDrivers; +use App\Http\Requests\Payments\PaymentWebhookRequest; use App\Models\ClientGatewayToken; use App\Models\GatewayType; use App\Models\Payment; @@ -91,4 +92,8 @@ class DriverTemplate extends BaseDriver { return $this->payment_method->yourTokenBillingImplmentation(); //this is your custom implementation from here } + + public function processWebhookRequest(PaymentWebhookRequest $request, Payment $payment = null) + { + } } diff --git a/app/PaymentDrivers/PayFastPaymentDriver.php b/app/PaymentDrivers/PayFastPaymentDriver.php index c759a2ee56..87005a7960 100644 --- a/app/PaymentDrivers/PayFastPaymentDriver.php +++ b/app/PaymentDrivers/PayFastPaymentDriver.php @@ -128,5 +128,12 @@ class PayFastPaymentDriver extends BaseDriver $getString .= '&passphrase='. urlencode( trim( $passPhrase ) ); } return md5( $getString ); + } + + public function processWebhookRequest(PaymentWebhookRequest $request, Payment $payment = null) + { + + nlog($request->all()); + return response()->json([], 200); } } diff --git a/resources/views/portal/ninja2020/gateways/payfast/authorize.blade.php b/resources/views/portal/ninja2020/gateways/payfast/authorize.blade.php index b1db2d411b..06cdd2dc56 100644 --- a/resources/views/portal/ninja2020/gateways/payfast/authorize.blade.php +++ b/resources/views/portal/ninja2020/gateways/payfast/authorize.blade.php @@ -17,6 +17,7 @@ + @if(!Request::isSecure())
{{ ctrans('texts.https_required') }}
@@ -28,9 +29,15 @@ {{ ctrans('texts.credit_card') }} @endcomponent - @component('portal.ninja2020.gateways.includes.pay_now', ['id' => 'server_response']) - {{ ctrans('texts.add_payment_method') }} - @endcomponent +