Jump to content

Need help on getting the response from API


Recommended Posts

Hi,

 

We bought Paytm Module. In that, we are passing the Order Id, Amount and Merchent ID to the Paytm API.

Now we want to check what is the response of that API. 

 

I am don't know how to get the API response. Can anyone please help me on this ?

 

Please help. 

 

Regards,

Mani

Link to comment
Share on other sites

Hi,

 

We bought Paytm Module. In that, we are passing the Order Id, Amount and Merchent ID to the Paytm API.

Now we want to check what is the response of that API. 

 

I am don't know how to get the API response. Can anyone please help me on this ?

 

Please help. 

 

Regards,

Mani

Hi..

 

which way you pass the api data ? using curl ?

 

if yes then 

 

var_dump($response)

 

Thanks

 

 

Link to comment
Share on other sites

Thanks for the response.

 

i am not sure whether it is curl or not... below is the code call for API.

 

$requestParamList = array("MID" => $merchant_id , "ORDERID" => $_POST['ORDERID']);

$check_status_url = 'https://pguat.paytm.com/oltp/HANDLER_INTERNAL/TXNSTATUS';

 

$responseParamList = callAPI($check_status_url, $requestParamList);

 

I want to see what is the response we are getting from this.

 

I tried the below functions. But no use. All are returning blank or page is not getting loaded.

 

var_export, var_dump, array_values

 

My doubt is, if i use these functions, it will display in website right ? 

 

I am using web php tool (which is in Control Panel)for modifying the code. I don't have console to test/print the output. I have to run and test in the PROD instance directly which is not recommended by my client. is there any other way to get the response ?

 

Regards,

Manirathnam S

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...