Created
March 9, 2012 15:38
-
-
Save VantivSDK/2007077 to your computer and use it in GitHub Desktop.
PHP SDK- Litle Refund Transaction, stand-alone
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once realpath(dirname(__FILE__)) . '/../lib/LitleOnline.php'; | |
# standalone credit | |
$credit_info = array( | |
'id'=> '456', | |
'card'=>array('type'=>'VI', | |
'number'=>'4100000000000001', | |
'expDate'=>'1213', | |
'cardValidationNum' => '1213'), | |
'orderSource'=>'ecommerce', | |
'orderId'=>'12321', | |
'amount'=>'123' | |
); | |
$initilaize = &new LitleOnlineRequest(); | |
$creditResponse = $initilaize->creditRequest($credit_info); | |
#display results | |
echo ("Response: " . (XmlParser::getNode($creditResponse,'response')) . "<br>"); | |
echo ("Message: " . XmlParser::getNode($creditResponse,'message') . "<br>"); | |
echo ("Litle Transaction ID: " . XmlParser::getNode($creditResponse,'litleTxnId')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please make sure to adjust the pathname, before running any tests