From ed1539db50bbead932f8c3d2a9dd81b1039f5115 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Thu, 26 Nov 2020 21:00:55 +1100 Subject: [PATCH] Fixes for authorize --- app/PaymentDrivers/Authorize/AuthorizePaymentMethod.php | 4 +++- app/PaymentDrivers/AuthorizePaymentDriver.php | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/app/PaymentDrivers/Authorize/AuthorizePaymentMethod.php b/app/PaymentDrivers/Authorize/AuthorizePaymentMethod.php index b344283c65..0a68cfcf4c 100644 --- a/app/PaymentDrivers/Authorize/AuthorizePaymentMethod.php +++ b/app/PaymentDrivers/Authorize/AuthorizePaymentMethod.php @@ -64,8 +64,10 @@ class AuthorizePaymentMethod } - public function authorizeResponseView($data) + public function authorizeResponseView($request) { + $data = $request->all(); + $this->payment_method = $data['payment_method_id']; switch ($this->payment_method) { diff --git a/app/PaymentDrivers/AuthorizePaymentDriver.php b/app/PaymentDrivers/AuthorizePaymentDriver.php index 4666d3b3d5..f462024ece 100644 --- a/app/PaymentDrivers/AuthorizePaymentDriver.php +++ b/app/PaymentDrivers/AuthorizePaymentDriver.php @@ -72,9 +72,9 @@ class AuthorizePaymentDriver extends BaseDriver return (new AuthorizePaymentMethod($this))->authorizeView(); } - public function authorizeResponse(array $data) + public function authorizeResponse($request) { - return (new AuthorizePaymentMethod($this))->authorizeResponseView($data); + return (new AuthorizePaymentMethod($this))->authorizeResponseView($request); } public function processPaymentView($data)