app/Http/Controllers/PaytmController.php
/**
     * Obtain the payment information.
     *
     * @return Object
     */
Obtain the payment information.
@return Object
Obtain the payment information . @return Object
public function paymentCallback()
    {   
        $transaction = PaytmWallet::with('receive');
        $response = $transaction->response(); 
        dd($response['ORDERID']);
        if($transaction->isSuccessful()){
        }else if($transaction->isFailed()){
        }else if($transaction->isOpen()){
        }
        $transaction->getResponseMessage(); 
        $transaction->getOrderId(); 
        $transaction->getTransactionId(); 
    }
public function paymentCallback ( ) { $ transaction = PaytmWallet :: with ( 'receive' ) ; $ response = $ transaction -> response ( ) ; dd ( $ response [ 'ORDERID' ] ) ; if ( $ transaction -> isSuccessful ( ) ) { } else if ( $ transaction -> isFailed ( ) ) { } else if ( $ transaction -> isOpen ( ) ) { } $ transaction -> getResponseMessage ( ) ; $ transaction -> getOrderId ( ) ; $ transaction -> getTransactionId ( ) ; }
Obtain the payment information.
Obtain the payment information .
// To get raw response as array //Check out response parameters sent by paytm here -> http://paywithpaytm.com/developer/paytm_api_doc?target=interpreting-response-sent-by-paytm //Transaction Failed //Transaction Open/Processing //Get Response Message If Available //get important parameters via public methods // Get order id // Get transaction id