Reply
Member
Posts: 2
Registered: ‎10-13-2015

Recurring Billing API not working

Hi 

 

I have intergrate ARB method 

// Load the library file.
$path = authnet_sdk_path('autoload.php');
define("AUTHORIZENET_API_LOGIN_ID", $loginID);
define("AUTHORIZENET_TRANSACTION_KEY", $transactionKey);

$subscription = new AuthorizeNet_Subscription;
$subscription->name = $user->name;
$subscription->intervalLength = $intervalLength;
$subscription->intervalUnit = $intervalUnit;
$subscription->startDate = $startDate;
$subscription->totalOccurrences = "9999"; //"12";
$subscription->amount = $amount;
$subscription->creditCardCardNumber = $card_num; //"6011000000000012";
$subscription->creditCardExpirationDate= $exp_date;
$subscription->creditCardCardCode = $cardcode;
$subscription->billToFirstName = $first_name;
$subscription->billToLastName = $last_name;

// Create the subscription.
$request = new AuthorizeNetARB;
$responseSb = $request->createSubscription($subscription);

r($responseSb);

OUTPUT >>

AuthorizeNetARB_Response Object
(
    [xml] => 
    [response] => 
)

 

I have unable create to Subscription and no error found.

please give me solution, 

Posts: 2,765
Topics: 57
Kudos: 254
Blog Posts: 67
Registered: ‎12-05-2011

Re: Recurring Billing API not working

Please following the instructions in the thread below to provide information to further troubleshoot this issue.

 

http://community.developer.authorize.net/t5/Integration-and-Testing/Response-returning-empty/m-p/525...

 

Richard