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
05-25-2017 11:58 AM
Is this only failing for this API method any API call? Is this with your sandbox or production account?
Richard
05-26-2017 01:29 PM
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);
05-26-2017 07:12 PM