Reply
Highlighted
Contributor
Posts: 14
Registered: ‎03-07-2017

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

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

Re: Empty response while creating ARB Subscription

@jay71134

 

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

 

Richard

Highlighted
Contributor
Posts: 14
Registered: ‎03-07-2017

Re: Empty response while creating ARB Subscription

@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);