diff --git a/app/PaymentDrivers/Authorize/AuthorizePaymentMethod.php b/app/PaymentDrivers/Authorize/AuthorizePaymentMethod.php index b344283c6580..0a68cfcf4ca9 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 4666d3b3d5bb..f462024ece3a 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)