@@ -247,10 +247,12 @@ |
||
247 | 247 | public function ipn(Request $request) |
248 | 248 | { |
249 | 249 | #Received all the payement information from the gateway |
250 | - if ($request->input('tran_id')) #Check transation id is posted or not. |
|
250 | + if ($request->input('tran_id')) { |
|
251 | + #Check transation id is posted or not. |
|
251 | 252 | { |
252 | 253 | |
253 | 254 | $tran_id = $request->input('tran_id'); |
255 | + } |
|
254 | 256 | |
255 | 257 | #Check order status in order tabel against the transaction id or order id. |
256 | 258 | $order_details = DB::table('orders') |
@@ -246,10 +246,12 @@ |
||
246 | 246 | public function ipn(Request $request) |
247 | 247 | { |
248 | 248 | #Received all the payement information from the gateway |
249 | - if ($request->input('tran_id')) #Check transation id is posted or not. |
|
249 | + if ($request->input('tran_id')) { |
|
250 | + #Check transation id is posted or not. |
|
250 | 251 | { |
251 | 252 | |
252 | 253 | $tran_id = $request->input('tran_id'); |
254 | + } |
|
253 | 255 | |
254 | 256 | #Check order status in order tabel against the transaction id or order id. |
255 | 257 | $order_details = DB::table('orders') |