I used your sample code and it doesn't work.
There are a bunch of fields missing out of it. Starts with user and password and keeps on going.
Right now it tells me:
Fatal error: Uncaught exception 'InvalidArgumentException' with message 'Missing Field /litle_requests_path/' in /var/www/sites/booking.higherlink.com/public_html/vendor/litle/payments-sdk/litle/sdk/Obj2xml.php:281 Stack trace: #0 /var/www/sites/booking.higherlink.com/public_html/vendor/litle/payments-sdk/litle/sdk/Obj2xml.php(31): litle\sdk\Obj2xml::getConfig(Array, 'sale') #1 /var/www/sites/booking.higherlink.com/public_html/vendor/litle/payments-sdk/litle/sdk/LitleOnlineRequest.php(882): litle\sdk\Obj2xml::toXml(Array, Array, 'sale') #2 /var/www/sites/booking.higherlink.com/public_html/vendor/litle/payments-sdk/litle/sdk/LitleOnlineRequest.php(172): litle\sdk\LitleOnlineRequest->processRequest(Array, Array, 'sale', Array, Array) #3 /var/www/sites/booking.higherlink.com/public_html/includes/source/test-vantiv.php(38): litle\sdk\LitleOnlineRequest->saleRequest(Array) #4 /var/www/sites/booking.higherlink.com/public_html/index.php(11): include('/var/www/sites/...') #5 {main} thrown in /var/www/sites/booking.higherlink.com/public_html/vendor/litle/payments-sdk/litle/sdk/Obj2xml.php on line 281
Now my question is do you have sample code that works? Where I just have to replace my user and password info?
$sale_info = array(
'user' => '***********',
'password' => '*************',
'reportGroup' => 'Default Report Group',
'url' => 'https://www.testvantivcnp.com/sandbox/communicator/online',
'id' => '456',
'orderId' => '1',
'amount' => '10010',
'orderSource' => 'ecommerce',
'billToAddress' => array(
'name' => 'John Smith' ,
'addressLine1' => ' 1 Main St.',
'city' => 'Burlington' ,
'state' => 'MA' ,
'zip' => '0183-3747',
'country' => 'US'),
'card' => array(
'number' => '5112010000000003',
'expDate' => '0112',
'cardValidationNum' => '349',
'type' => 'MC' )
);
$initialize = new litle\sdk\LitleOnlineRequest();
$saleResponse =$initialize->saleRequest($sale_info);
#display results
echo ("Response: " . (litle\sdk\XmlParser::getNode($saleResponse,'response')) . "<br>");
echo ("Message: " . litle\sdk\XmlParser::getNode($saleResponse,'message') . "<br>");
echo ("Vantiv eCommerce Transaction ID: " . litle\sdk\XmlParser::getNode($saleResponse,'litleTxnId'));
Responded in another similar request https://developer.vantiv.com/message/3764?commentID=3764&et=watches.email.thread#comment-3764 .