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] => )
05-12-2017 09:22 PM
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.
05-13-2017 12:47 PM - edited 05-13-2017 12:49 PM
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
06-14-2017 02:01 AM
Try running the code directly in the console, with a valid SubscriptionID, print_r($response); should return a value.
06-14-2017 04:00 AM