Completed
Push — development ( bbb3cb...01e088 )
by Bhanu
20:14 queued 10:08
created
app/Http/Controllers/Front/CheckoutController.php 1 patch
Braces   +10 added lines, -5 removed lines patch added patch discarded remove patch
@@ -80,7 +80,8 @@  discard block
 block discarded – undo
80 80
      */
81 81
     public function checkoutForm(Request $request)
82 82
     {
83
-        if (!\Auth::user()) {//If User is not Logged in then send him to login Page
83
+        if (!\Auth::user()) {
84
+//If User is not Logged in then send him to login Page
84 85
             $url = $request->segments(); //The requested url (chekout).Save it in Session
85 86
             \Session::put('session-url', $url[0]);
86 87
             $content = Cart::getContent();
@@ -106,7 +107,8 @@  discard block
 block discarded – undo
106 107
 
107 108
         try {
108 109
             $domain = $request->input('domain');
109
-            if ($domain) {//Store the Domain  in session when user Logged In
110
+            if ($domain) {
111
+//Store the Domain  in session when user Logged In
110 112
                 foreach ($domain as $key => $value) {
111 113
                     \Session::put('domain'.$key, $value);
112 114
                 }
@@ -131,7 +133,8 @@  discard block
 block discarded – undo
131 133
     public function getAttributes($content)
132 134
     {
133 135
         try {
134
-            if (count($content) > 0) {//after ProductPurchase this is not true as cart is cleared
136
+            if (count($content) > 0) {
137
+//after ProductPurchase this is not true as cart is cleared
135 138
                 foreach ($content as $key => $item) {
136 139
                     $attributes[] = $item->attributes;
137 140
                     $cart_currency = $attributes[0]['currency']['currency']; //Get the currency of Product in the cart
@@ -266,9 +269,11 @@  discard block
 block discarded – undo
266 269
                     \Event::fire(new \App\Events\PaymentGateway(['request' => $request, 'cart' => Cart::getContent(), 'order' => $invoice]));
267 270
                 }
268 271
             } else {
269
-                if ($paynow == false) {//Regular Payment for free Product
272
+                if ($paynow == false) {
273
+//Regular Payment for free Product
270 274
                     $action = $this->checkoutAction($invoice);
271
-                } else {//Renewal Payment for free Product
275
+                } else {
276
+//Renewal Payment for free Product
272 277
                     $control = new \App\Http\Controllers\Order\RenewController();
273 278
                     $control->successRenew($invoice);
274 279
                     $payment = new \App\Http\Controllers\Order\InvoiceController();
Please login to merge, or discard this patch.