Skip to content

Instantly share code, notes, and snippets.

@GJSissons
Last active January 7, 2016 14:22
Show Gist options
  • Save GJSissons/138192602049da43085f to your computer and use it in GitHub Desktop.
Save GJSissons/138192602049da43085f to your computer and use it in GitHub Desktop.
Authorizing a Vantiv eCommerce transaction using cURL
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