cancel
Showing results for 
Search instead for 
Did you mean: 

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, 

arunmishra
Member
1 REPLY 1

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

RichardH
Administrator Administrator
Administrator