diff --git a/app/Http/Requests/Request.php b/app/Http/Requests/Request.php index 5ad2e358ba1a..c90d9485c742 100644 --- a/app/Http/Requests/Request.php +++ b/app/Http/Requests/Request.php @@ -134,7 +134,7 @@ class Request extends FormRequest } } - if (isset($input['contacts'])) { + if (isset($input['contacts']) && is_array($input['contacts'])) { foreach ($input['contacts'] as $key => $contact) { if (array_key_exists('id', $contact) && is_numeric($contact['id'])) { unset($input['contacts'][$key]['id']); diff --git a/app/PaymentDrivers/Eway/CreditCard.php b/app/PaymentDrivers/Eway/CreditCard.php index c656ec8b0922..3338c8aaf5b9 100644 --- a/app/PaymentDrivers/Eway/CreditCard.php +++ b/app/PaymentDrivers/Eway/CreditCard.php @@ -138,7 +138,7 @@ class CreditCard // ], // 'TransactionType' => \Eway\Rapid\Enum\TransactionType::PURCHASE, 'Method' => \Eway\Rapid\Enum\PaymentMethod::CREATE_TOKEN_CUSTOMER, - 'SecuredCardData' => $request->input('SecuredCardData'), + 'SecuredCardData' => $request->input('securefieldcode'), ]; $response = $this->eway_driver->init()->eway->createCustomer(\Eway\Rapid\Enum\ApiMethod::DIRECT, $transaction); @@ -178,7 +178,8 @@ class CreditCard } - public function processPaymentResponse($request) + + public function paymentResponse($request) { } diff --git a/app/PaymentDrivers/EwayPaymentDriver.php b/app/PaymentDrivers/EwayPaymentDriver.php index 0c6f15fbfe29..66dc23c9a443 100644 --- a/app/PaymentDrivers/EwayPaymentDriver.php +++ b/app/PaymentDrivers/EwayPaymentDriver.php @@ -115,7 +115,7 @@ class EwayPaymentDriver extends BaseDriver } } else { $refund_status = false; - $refund_message 'Sorry, your refund failed'; + $refund_message = 'Sorry, your refund failed'; } } return [ @@ -146,7 +146,7 @@ class EwayPaymentDriver extends BaseDriver if($precision == 1) return $amount*10; - if$precision == 2) + if($precision == 2) return $amount*100; diff --git a/resources/views/portal/ninja2020/gateways/eway/authorize.blade.php b/resources/views/portal/ninja2020/gateways/eway/authorize.blade.php index cd41a3b9a283..19fced509956 100644 --- a/resources/views/portal/ninja2020/gateways/eway/authorize.blade.php +++ b/resources/views/portal/ninja2020/gateways/eway/authorize.blade.php @@ -6,10 +6,10 @@ ctrans('texts.credit_card')]) @section('gateway_content')
+ method="post" id="server-response"> @csrf - + @@ -36,7 +36,7 @@ ctrans('texts.credit_card')]) -@include('portal.ninja2020.gateways.eway.includes.credt_card') +@include('portal.ninja2020.gateways.eway.includes.credit_card')