cancel
Showing results for 
Search instead for 
Did you mean: 

Empty response while creating ARB Subscription

Hi,

 

I'm using PHP SDK API and everything working fine, when i migrate site to Amazon AWS "ARBCreateSubscriptionController"  return empty response and subscripitons are not creating. 

 

Is this something with server configuration?

 

Code snippt is :

 

$request = new AnetAPI\ARBCreateSubscriptionRequest();
$request->setmerchantAuthentication($merchantAuthentication);
$request->setRefId($refId);
$request->setSubscription($subscription);
$controller = new AnetController\ARBCreateSubscriptionController($request);

$response = $controller->executeWithApiResponse(Envir);

if (($response != null) && ($response->getMessages()->getResultCode() == "Ok") ){
    $SubscriptionID = $response->getSubscriptionId();
}

Any help would be great and Thanks you in advance.

Regards

jay71134
Contributor
2 REPLIES 2

@jay71134

 

Is this only failing for this API method any API call?  Is this with your sandbox or production account?

 

Richard

RichardH
Administrator Administrator
Administrator

@RichardH

 

I take more closer look and noticed issue is started when i set PaymentSchedule. I print out values( interval, start date) that are passed to paymentSchedule and these are all good.  same code is working in my old hosting but it is not working for Amazon AWS hosting.  Site is currently in production mode.

 

Here is code snippt :

 

$paymentSchedule = new AnetAPI\PaymentScheduleType();
$paymentSchedule->setInterval($interval);
$paymentSchedule->setStartDate(new DateTime($dateeffective));
$paymentSchedule->setTotalOccurrences("9999");
 //$paymentSchedule->setTrialOccurrences("1");
$subscription->setPaymentSchedule($paymentSchedule);