Create a gist now

Instantly share code, notes, and snippets.

PHP SDK - Litle AVS Only Transaction
<?php
require_once realpath(dirname(__FILE__)) . '/../lib/LitleOnline.php';
#AVS Only
$auth_info = array(
'orderId' => '1',
'id'=> '456',
'amount' => '10010',
'orderSource'=>'ecommerce',
'billToAddress'=>array(
'name' => 'John Smith',
'addressLine1' => '1 Main St.',
'city' => 'Burlington',
'state' => 'MA',
'zip' => '01803-3747',
'country' => 'US'
),
'card'=>array(
'number' =>'4457010000000009',
'expDate' => '0112',
'cardValidationNum' => '349',
'type' => 'VI'
)
);
$initilaize = &new LitleOnlineRequest();
$avsResponse = $initilaize->authorizationRequest($auth_info);
#display results
echo ("Response: " . (XmlParser::getNode($avsResponse,'response')) . "<br>");
echo ("Message: " . XmlParser::getNode($avsResponse,'message') . "<br>");
echo ("Litle Transaction ID: " . XmlParser::getNode($avsResponse,'litleTxnId'));
echo ("AVS Result: " . XmlParser::getNode($avsResponse,'avsResult'));
@dlabey
dlabey commented Sep 23, 2015

Shouldn't amount be 0?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment