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) {