From eafaa4c8d21f9f60bd749e4b8bc12e9b80db319a Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Wed, 16 Jul 2014 00:12:32 +0300 Subject: [PATCH] Bug fixes --- app/controllers/PaymentController.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/controllers/PaymentController.php b/app/controllers/PaymentController.php index 4d428f4229d4..29bc237c2283 100755 --- a/app/controllers/PaymentController.php +++ b/app/controllers/PaymentController.php @@ -122,10 +122,12 @@ class PaymentController extends \BaseController $gateway->$function($val); } + /* if (!Utils::isProd()) { $gateway->setTestMode(true); } + */ return $gateway; } @@ -386,6 +388,8 @@ class PaymentController extends \BaseController { $gateway = self::createGateway($accountGateway); $details = self::getLicensePaymentDetails(Input::all()); + $response = $gateway->purchase($details)->send(); + $ref = $response->getTransactionReference(); if (!$ref) {