From 77289e270e2d535299a9392dfd8121e9c7098026 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Wed, 30 Jul 2014 20:33:57 +0300 Subject: [PATCH] Change to license page --- app/controllers/PaymentController.php | 14 ++++++++++-- app/views/public/license.blade.php | 32 +++++++++++++++++++++++++++ 2 files changed, 44 insertions(+), 2 deletions(-) create mode 100644 app/views/public/license.blade.php 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

+ + +
+
+
+ +

 

+

 

+ +
+
+
+
+

{{ $license }}

+
+
+
+
+ +

 

+

 

+ + +@stop \ No newline at end of file