Skip to content

Instantly share code, notes, and snippets.

View VantivSDK's full-sized avatar
🎯
Focusing

Worldpay from FIS - eCommerce VantivSDK

🎯
Focusing
View GitHub Profile
@VantivSDK
VantivSDK / Request.xml
Last active August 29, 2015 13:57
Litle Merchant Provisioner PayFac API Sandbox Case #5
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<legalEntityUpdateRequest xmlns="http://psp.litle.com/api/merchant/onboard">
<address>
<streetAddress1>1000 chelmsford street</streetAddress1>
<city>Lowell</city>
<stateProvince>MA</stateProvince>
<postalCode>01851</postalCode>
<countryCode>USA</countryCode>
</address>
<annualCreditCardSalesVolume>10000000</annualCreditCardSalesVolume>
@VantivSDK
VantivSDK / Response.xml
Created March 5, 2014 19:50
Litle Merchant Provisioner PayFac API Sandbox Case #17
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<approvedMccResponse xmlns="http://psp.litle.com/api/merchant/onboard">
<transactionId>83815690651584860</transactionId>
<approvedMccs>
<approvedMcc>4816</approvedMcc>
<approvedMcc>5960</approvedMcc>
<approvedMcc>5964</approvedMcc>
<approvedMcc>5965</approvedMcc>
<approvedMcc>8220</approvedMcc>
</approvedMccs>
@VantivSDK
VantivSDK / Request.xml
Last active August 29, 2015 13:57
Litle Merchant Provisioner PayFac API Sandbox Case #10
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<subMerchantCreateRequest
xmlns="http://psp.litle.com/api/merchant/onboard">
<merchantName>Merchant Name</merchantName>
<amexMid>1234567890</amexMid>
<discoverConveyedMid>123456789012345</discoverConveyedMid>
<url>http://merchantUrl</url>
<customerServiceNumber>8407809000</customerServiceNumber>
<hardCodedBillingDescriptor>billingDescriptor</hardCodedBillingDescriptor>
<maxTransactionAmount>8400</maxTransactionAmount>
@VantivSDK
VantivSDK / Response.xml
Last active August 29, 2015 13:57
Litle Merchant Provisioner PayFac API Sandbox Case #6
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<legalEntityRetrievalResponse
xmlns="http://psp.litle.com/api/merchant/onboard">
<legalEntityName>Legal Entity Name</legalEntityName>
<legalEntityType>INDIVIDUAL_SOLE_PROPRIETORSHIP</legalEntityType>
<taxId>X-2345</taxId>
<annualCreditCardSalesVolume>10000000</annualCreditCardSalesVolume>
<hasAcceptedCreditCards>true</hasAcceptedCreditCards>
<address>
<countryCode>USA</countryCode>
@VantivSDK
VantivSDK / Response.xml
Last active August 29, 2015 13:57
Litle Merchant Provisioner PayFac API Sandbox Case #7
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<errorResponse
xmlns="http://psp.litle.com/api/merchant/onboard">
<transactionId>65202997649486293</transactionId>
<errors>
<error>Error in request: Could not find requested object.</error>
</errors>
</errorResponse>
@VantivSDK
VantivSDK / gist:9375246
Created March 5, 2014 19:55
Litle Merchant Provisioner PayFac API Curl
curl \
-H "Authorization: Basic UFNQeG1sVjg6cGFzc3dvcmQ=" \
-H "Content-Type: application/com.litle.psp-v8+xml" \
-H "Accept: application/com.litle.psp-v8+xml" \
-d@Request.xml \
https://www.testlitle.com/sandbox/legalentity
@VantivSDK
VantivSDK / Response.xml
Last active August 29, 2015 13:57
Litle Merchant Provisioner PayFac API Sandbox Case #15
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<errorResponse
xmlns="http://psp.litle.com/api/merchant/onboard">
<transactionId>38531997579782702</transactionId>
<errors>
<error>Error in request: Could not find requested object.</error>
</errors>
</errorResponse>
@VantivSDK
VantivSDK / Response.xml
Last active August 29, 2015 13:57
Litle Merchant Provisioner PayFac API Sandbox Case #16
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<errorResponse
xmlns="http://psp.litle.com/api/merchant/onboard">
<transactionId>90080187934367920</transactionId>
<errors>
<error>Error in request: Could not find requested object.</error>
</errors>
</errorResponse>
@VantivSDK
VantivSDK / gist:9511252
Created March 12, 2014 16:56
Curl example for MP Sandbox
$curl -H "Content-Type: application/com.litle.psp-v8+xml" -H "Authorization: Basic bWVyY2hhbnQxOnBhc3N3b3Jk=" –d@<File with XML content> https://www.testlitle.com/sandbox/legalentity
@VantivSDK
VantivSDK / SftpEcheckSaleBatch.cs
Last active August 29, 2015 14:08
Sample batch of echeck sales sent over SFTP - .NET SDK
using Litle.Sdk;
//By default, the classes will load the settings from the LitleSdkForNet.dll.config
litleRequest litleRequest = new litleRequest();
batchRequest batchRequest = new batchRequest();
//The echeck information to be used for this transaction
echeckType echeck = new echeckType();
echeck.accType = echeckAccountTypeEnum.Checking;
echeck.accNum = "1099999903";