app/Http/Controllers/PaytmController.php
/**
     * Redirect the user to the Payment Gateway.
     *
     * @return Response
     */
Redirect the user to the Payment Gateway.
@return Response
Redirect the user to the Payment Gateway . @return Response
public function pay() {
        $payment = PaytmWallet::with('receive');
        $payment->prepare([
          'order' => 89, 
          'user' => 'Cust_id_16', 
          'mobile_number' => 79785477671, 
          'email' => 'hungerforcode@gmail.com', 
          'amount' => 1.00, 
          'callback_url' => 'http://localhost:8000/payment/status' 
        ]);
        return $payment->receive();
    }
public function pay ( ) { $ payment = PaytmWallet :: with ( 'receive' ) ; $ payment -> prepare ( [ 'order' => 89 , 'user' => 'Cust_id_16' , 'mobile_number' => 79785477671 , 'email' => 'hungerforcode@gmail.com' , 'amount' => 1.00 , 'callback_url' => 'http://localhost:8000/payment/status' ] ) ; return $ payment -> receive ( ) ; }
Redirect the user to the Payment Gateway.
Redirect the user to the Payment Gateway .
// your order id taken from cart // your user id // your customer mobile no // your user email address // amount will be paid in INR. // callback URL