Last active
January 7, 2016 14:22
-
-
Save GJSissons/138192602049da43085f to your computer and use it in GitHub Desktop.
Authorizing a Vantiv eCommerce transaction using cURL
This file contains 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
curl --tlsv1.2 https://www.testlitle.com/sandbox/communicator/online \ | |
-H "Content-Type: text/xml" \ | |
-d \ | |
'<litleOnlineRequest version="9.4" xmlns="http://www.litle.com/schema" merchantId="default"> | |
<authentication> | |
<user>MyTestStore</user> <!--substitute with your username --> | |
<password>MyPa$$word</password> <!--substitute with your password --> | |
</authentication> | |
<authorization id="auth-id" reportGroup="IQRptGrp" customerId="12345"> | |
<orderId>1</orderId> | |
<amount>1000</amount> <!--Amount is $10.00, no decimals--> | |
<orderSource>ecommerce</orderSource> | |
<billToAddress> | |
<name>John Smith</name> | |
<addressLine1>20 Main Street</addressLine1> | |
<city>San Jose</city> | |
<state>CA</state> | |
<zip>95032</zip> | |
<country>USA</country> | |
<email>jdoe@vantiv.com</email> | |
<phone>978-551-0040</phone> | |
</billToAddress> | |
<card> | |
<type>VI</type> | |
<number>xxxxxxxxxxxx000</number> <!--substitute with your test card number--> | |
<expDate>0112</expDate> | |
<cardValidationNum>349</cardValidationNum> | |
</card> | |
<customBilling> | |
<phone>8885551212</phone> | |
<descriptor>mystore*001</descriptor> | |
</customBilling> | |
</authorization> | |
</litleOnlineRequest>' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment