diff --git a/app/controllers/PaymentController.php b/app/controllers/PaymentController.php
index 36a6a2f64..fb4d17597 100755
--- a/app/controllers/PaymentController.php
+++ b/app/controllers/PaymentController.php
@@ -406,16 +406,26 @@ class PaymentController extends \BaseController
}
+ $licenseKey = Utils::generateLicense();
+
$license = new License;
$license->first_name = Input::get('first_name');
$license->last_name = Input::get('last_name');
$license->email = Input::get('email');
$license->transaction_reference = $ref;
- $license->license_key = Utils::generateLicense();
+ $license->license_key = $licenseKey;
$license->affiliate_id = Session::get('affiliate_id');
$license->save();
- return Redirect::away(Session::get('return_url') . "?license_key={$license->license_key}");
+
+ $data = [
+ 'license' => $licenseKey,
+ 'hideHeader' => true
+ ];
+
+ return View::make('public.license', $data);
+
+ //return Redirect::away(Session::get('return_url') . "?license_key={$license->license_key}");
}
catch (\Exception $e)
{
diff --git a/app/views/public/license.blade.php b/app/views/public/license.blade.php
new file mode 100644
index 000000000..de91a3230
--- /dev/null
+++ b/app/views/public/license.blade.php
@@ -0,0 +1,32 @@
+@extends('public.header')
+
+@section('content')
+
+License Key
+
+
+
+
+ +
+
+ + +@stop \ No newline at end of file