From 6d8aba49d721a638cb693a80edc3b9896ff3386e Mon Sep 17 00:00:00 2001 From: David Bomba Date: Mon, 5 Jul 2021 15:47:27 +1000 Subject: [PATCH] Payfast payments --- app/PaymentDrivers/PayFast/CreditCard.php | 2 +- .../views/portal/ninja2020/gateways/payfast/pay.blade.php | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/app/PaymentDrivers/PayFast/CreditCard.php b/app/PaymentDrivers/PayFast/CreditCard.php index ae5968eddda7..f97c6c333a1e 100644 --- a/app/PaymentDrivers/PayFast/CreditCard.php +++ b/app/PaymentDrivers/PayFast/CreditCard.php @@ -169,7 +169,7 @@ class CreditCard 'return_url' => route('client.payment_methods.index'), 'cancel_url' => route('client.payment_methods.index'), 'notify_url' => $this->payfast->genericWebhookUrl(), - 'm_payment_id' => $data['hash'], + 'm_payment_id' => $data['payment_hash'], 'amount' => $data['amount_with_fee'], 'item_name' => 'purchase', 'item_description' => ctrans('texts.invoices') . ': ' . collect($data['invoices'])->pluck('invoice_number'), diff --git a/resources/views/portal/ninja2020/gateways/payfast/pay.blade.php b/resources/views/portal/ninja2020/gateways/payfast/pay.blade.php index 5cde9b5fca75..9f2146badd32 100644 --- a/resources/views/portal/ninja2020/gateways/payfast/pay.blade.php +++ b/resources/views/portal/ninja2020/gateways/payfast/pay.blade.php @@ -20,11 +20,6 @@ - - @if(!Request::isSecure()) -

{{ ctrans('texts.https_required') }}

- @endif - @component('portal.ninja2020.components.general.card-element', ['title' => ctrans('texts.method')])