cancel
Showing results for 
Search instead for 
Did you mean: 

Response returning empty

I am checking from my local server
Previously it is working fine suddenly it stooped working, can i know where i am going wrong

<?php

require_once 'AuthorizeNet.php';
define("AUTHORIZENET_API_LOGIN_ID", "xxxxxx");
define("AUTHORIZENET_TRANSACTION_KEY", "xxxxxxxx");
define("AUTHORIZENET_SANDBOX", true);
$request = new AuthorizeNetARB;
$response = $request->cancelSubscription($subscriptionId);
print_r($response);
?>

 

O/p : AuthorizeNetARB_Response Object ( [xml] => [response] => ) 

venkatarao
Member
3 REPLIES 3

Your server configuration should have a trusted SSL authorities list.

If you don't have the ability to modify server configurations, you can download CA bundle from Mozilla at: http://curl.haxx.se/ca/cacert.pem and save it to ./anet_php_sdk/lib/ssl/cert.pem. 

 

Prior to saving your certificate file, you can verify it's a certificate issue by changing 

public $VERIFY_PEER = true;

to

public $VERIFY_PEER = false;

in /lib/shared/AuthorizeNetRequest.php.  But you should change it back for production use.

Powered by NexWebSites.com -
Certified Authorize.net developers
NexusSoftware
Trusted Contributor
public $VERIFY_PEER = false;

I have done that change but still it is displaying empty response

 

Is there is anything i need to change...??

 

Thanks

Try running the code directly in the console, with a valid SubscriptionID,  print_r($response); should return a value.

Powered by NexWebSites.com -
Certified Authorize.net developers