Created
June 7, 2012 20:18
-
-
Save VantivSDK/2891316 to your computer and use it in GitHub Desktop.
Python SDK-Litle Register Token Transaction
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
| from litleSdkPython.litleOnlineRequest import * | |
| config = Configuration() | |
| config.setUser("User") | |
| config.setPassword("Pass") | |
| config.setMerchantId("123") | |
| config.setUrl("Sandbox") | |
| config.setProxy("") | |
| #Register an account number to receive a Litle Token | |
| token = litleXmlFields.registerTokenRequest() | |
| token.orderId = '12344' | |
| token.accountNumber = '1233456789103801' | |
| litleXml = litleOnlineRequest(config) | |
| response = litleXml.sendRequest(token) | |
| #display results | |
| print "Response: " + response.response | |
| print "Message: " + response.message | |
| print "LitleTransaction ID: " + str(response.litleTxnId) | |
| print "Litle Token: " + response.litleToken |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment