diff --git a/app/controllers/PaymentController.php b/app/controllers/PaymentController.php index fb4d175976de..b4ad7dc643bf 100755 --- a/app/controllers/PaymentController.php +++ b/app/controllers/PaymentController.php @@ -417,8 +417,10 @@ class PaymentController extends \BaseController $license->affiliate_id = Session::get('affiliate_id'); $license->save(); + $affiliate = Affiliate::find(Session::get('affiliate_id')); $data = [ + 'message' => $affiliate->payment_subtitle, 'license' => $licenseKey, 'hideHeader' => true ]; @@ -443,8 +445,11 @@ class PaymentController extends \BaseController if ($license) { - $license->is_claimed = true; - $license->save(); + if ($license->transaction_reference != 'TEST_MODE') + { + $license->is_claimed = true; + $license->save(); + } return 'valid'; } diff --git a/app/views/public/license.blade.php b/app/views/public/license.blade.php index de91a32301c3..29a85cd6e8cb 100644 --- a/app/views/public/license.blade.php +++ b/app/views/public/license.blade.php @@ -12,13 +12,15 @@ -

 

 

+

{{ $message }}

+

 

+

 

{{ $license }}

@@ -26,7 +28,6 @@

 

-

 

@stop \ No newline at end of file