@@ -54,7 +54,8 @@ |
||
| 54 | 54 | $api = new Api($rzp_key, $rzp_secret); |
| 55 | 55 | $payment = $api->payment->fetch($input['razorpay_payment_id']); |
| 56 | 56 | |
| 57 | - if (count($input) && !empty($input['razorpay_payment_id'])) { //Verify Razorpay Payment Id and Signature |
|
| 57 | + if (count($input) && !empty($input['razorpay_payment_id'])) { |
|
| 58 | +//Verify Razorpay Payment Id and Signature |
|
| 58 | 59 | |
| 59 | 60 | //Fetch payment information by razorpay_payment_id |
| 60 | 61 | try { |
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | $product = Product::where('id', $order->product)->select('id', 'name')->first(); |
| 130 | 130 | \Cart::clear(); |
| 131 | 131 | $status = 'success'; |
| 132 | - $message = view('themes.default1.front.postPaymentTemplate', compact('invoice','date','order', |
|
| 132 | + $message = view('themes.default1.front.postPaymentTemplate', compact('invoice', 'date', 'order', |
|
| 133 | 133 | 'product', 'invoiceItem', 'state', 'currency'))->render(); |
| 134 | 134 | |
| 135 | 135 | return ['status'=>$status, 'message'=>$message]; |
@@ -149,7 +149,7 @@ discard block |
||
| 149 | 149 | \Cart::clear(); |
| 150 | 150 | $status = 'success'; |
| 151 | 151 | |
| 152 | - $message = view('themes.default1.front.postRenewTemplate', compact('invoice','date','order', |
|
| 152 | + $message = view('themes.default1.front.postRenewTemplate', compact('invoice', 'date', 'order', |
|
| 153 | 153 | 'product', 'invoiceItem', 'state', 'currency'))->render(); |
| 154 | 154 | |
| 155 | 155 | return ['status'=>$status, 'message'=>$message]; |
@@ -121,7 +121,8 @@ |
||
| 121 | 121 | |
| 122 | 122 | public function getRelease($owner, $repository, $order_id, $file) |
| 123 | 123 | { |
| 124 | - if ($owner && $repository) {//If the Product is downloaded from Github |
|
| 124 | + if ($owner && $repository) { |
|
| 125 | +//If the Product is downloaded from Github |
|
| 125 | 126 | $github_controller = new \App\Http\Controllers\Github\GithubController(); |
| 126 | 127 | $relese = $github_controller->listRepositories($owner, $repository, $order_id); |
| 127 | 128 | |
@@ -302,7 +302,7 @@ |
||
| 302 | 302 | if ($product->retired == 1) { |
| 303 | 303 | $field .= "<div class='col-md-4 form-group'> |
| 304 | 304 | <label class='required'>"./* @scrutinizer ignore-type */ |
| 305 | - \Lang::get('message.description')."</label> |
|
| 305 | + \Lang::get('message.description')."</label> |
|
| 306 | 306 | <textarea name='description' class='form-control' |
| 307 | 307 | id='description' placeholder='Description'></textarea> |
| 308 | 308 | </div>"; |
@@ -33,6 +33,6 @@ |
||
| 33 | 33 | return ''; |
| 34 | 34 | |
| 35 | 35 | // return "Product has been {$eventName}"; |
| 36 | - // \Auth::user()->activity; |
|
| 36 | + // \Auth::user()->activity; |
|
| 37 | 37 | } |
| 38 | 38 | } |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -\Event::listen('App\Events\PaymentGateway', function ($event) { |
|
| 3 | +\Event::listen('App\Events\PaymentGateway', function($event) { |
|
| 4 | 4 | $controller = new App\Plugins\Paypal\Controllers\ProcessController(); |
| 5 | 5 | // echo $controller->PassToPayment($event->para); |
| 6 | 6 | }); |
@@ -115,7 +115,7 @@ |
||
| 115 | 115 | ]); |
| 116 | 116 | $this->createOrderInvoiceRelation($orderid, $invoice->id); |
| 117 | 117 | $items = $controller->createInvoiceItemsByAdmin($invoice->id, $product->id, |
| 118 | - $code, $product_cost, $currency, $qty = 1); |
|
| 118 | + $code, $product_cost, $currency, $qty = 1); |
|
| 119 | 119 | |
| 120 | 120 | return $items; |
| 121 | 121 | } catch (Exception $ex) { |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | protected $fillable = ['tax_enable', 'inclusive', 'shop_inclusive', 'cart_inclusive', 'rounding', 'Gst_no']; |
| 13 | 13 | protected static $logName = 'Tax Class'; |
| 14 | 14 | protected static $logAttributes = ['tax_enable', 'inclusive', |
| 15 | - 'shop_inclusive', 'cart_inclusive', 'rounding', 'Gst_no', ]; |
|
| 15 | + 'shop_inclusive', 'cart_inclusive', 'rounding', 'Gst_no', ]; |
|
| 16 | 16 | protected static $logOnlyDirty = true; |
| 17 | 17 | |
| 18 | 18 | public function getDescriptionForEvent(string $eventName): string |
@@ -115,7 +115,7 @@ |
||
| 115 | 115 | <br>OTP has been sent to '.$number.'.<br>Please enter the |
| 116 | 116 | OTP received on your mobile No below. Incase you did not recieve OTP, |
| 117 | 117 | please get in touch with us on <a href="mailto:[email protected]"> |
| 118 | - [email protected]</a>', ]; |
|
| 118 | + [email protected]</a>',]; |
|
| 119 | 119 | |
| 120 | 120 | return response()->json($response); |
| 121 | 121 | } catch (\Exception $ex) { |
@@ -86,7 +86,8 @@ discard block |
||
| 86 | 86 | $i_gst = $user_state->i_gst; |
| 87 | 87 | $ut_gst = $user_state->ut_gst; |
| 88 | 88 | $state_code = $user_state->state_code; |
| 89 | - if ($state_code == $origin_state) {//If user and origin state are same |
|
| 89 | + if ($state_code == $origin_state) { |
|
| 90 | +//If user and origin state are same |
|
| 90 | 91 | $taxClassId = TaxClass::where('name', 'Intra State GST') |
| 91 | 92 | ->pluck('id')->toArray(); //Get the class Id of state |
| 92 | 93 | if ($taxClassId) { |
@@ -95,7 +96,8 @@ discard block |
||
| 95 | 96 | } else { |
| 96 | 97 | $taxes = [0]; |
| 97 | 98 | } |
| 98 | - } elseif ($state_code != $origin_state && $ut_gst == 'NULL') {//If user is from other state |
|
| 99 | + } elseif ($state_code != $origin_state && $ut_gst == 'NULL') { |
|
| 100 | +//If user is from other state |
|
| 99 | 101 | |
| 100 | 102 | $taxClassId = TaxClass::where('name', 'Inter State GST') |
| 101 | 103 | ->pluck('id')->toArray(); //Get the class Id of state |
@@ -105,7 +107,8 @@ discard block |
||
| 105 | 107 | } else { |
| 106 | 108 | $taxes = [0]; |
| 107 | 109 | } |
| 108 | - } elseif ($state_code != $origin_state && $ut_gst != 'NULL') {//if user from Union Territory |
|
| 110 | + } elseif ($state_code != $origin_state && $ut_gst != 'NULL') { |
|
| 111 | +//if user from Union Territory |
|
| 109 | 112 | $taxClassId = TaxClass::where('name', 'Union Territory GST') |
| 110 | 113 | ->pluck('id')->toArray(); //Get the class Id of state |
| 111 | 114 | if ($taxClassId) { |
@@ -130,14 +133,16 @@ discard block |
||
| 130 | 133 | ->pluck('tax_classes_id')->first(); |
| 131 | 134 | $value = ''; |
| 132 | 135 | $rate = ''; |
| 133 | - if ($taxClassId) { //if state equals the user State |
|
| 136 | + if ($taxClassId) { |
|
| 137 | +//if state equals the user State |
|
| 134 | 138 | |
| 135 | 139 | $taxes = $cartController->getTaxByPriority($taxClassId); |
| 136 | 140 | |
| 137 | 141 | // $taxes = $this->cartController::getTaxByPriority($taxClassId); |
| 138 | 142 | $value = $cartController->getValueForOthers($productid, $taxClassId, $taxes); |
| 139 | 143 | $rate = $value; |
| 140 | - } else {//if Tax is selected for Any State Any Country |
|
| 144 | + } else { |
|
| 145 | +//if Tax is selected for Any State Any Country |
|
| 141 | 146 | $taxClassId = Tax::where('country', '')->where('state', 'Any State')->pluck('tax_classes_id')->first(); |
| 142 | 147 | if ($taxClassId) { |
| 143 | 148 | $taxes = $cartController->getTaxByPriority($taxClassId); |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | $state_code = $user_state->state_code; |
| 33 | 33 | if ($state_code == $origin_state) {//If user and origin state are same |
| 34 | 34 | $taxClassId = TaxClass::where('name', 'Intra State GST') |
| 35 | - ->pluck('id')->toArray(); //Get the class Id of state |
|
| 35 | + ->pluck('id')->toArray(); //Get the class Id of state |
|
| 36 | 36 | if ($taxClassId) { |
| 37 | 37 | $taxes = $cartController->getTaxByPriority($taxClassId); |
| 38 | 38 | $value = $cartController->getValueForSameState($productid, $c_gst, $s_gst, $taxClassId, $taxes); |
@@ -8,7 +8,7 @@ |
||
| 8 | 8 | { |
| 9 | 9 | protected $table = 'addons'; |
| 10 | 10 | protected $fillable = ['product', 'subscription', 'name', |
| 11 | - 'description', 'regular_price', 'selling_price', 'tax_addon', |
|
| 11 | + 'description', 'regular_price', 'selling_price', 'tax_addon', |
|
| 12 | 12 | 'show_on_order', 'auto_active_payment', 'suspend_parent', ]; |
| 13 | 13 | |
| 14 | 14 | public function relation() |