Created
June 7, 2012 17:43
-
-
Save VantivSDK/2890278 to your computer and use it in GitHub Desktop.
Python SDK- Litle Credit 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("") | |
| #Credit | |
| #litleTxnId contains the Litle Transaction Id returned on | |
| #the capture or sale transaction being credited | |
| #the amount is optional, if it isn't submitted the full amount will be credited | |
| credit = litleXmlFields.credit() | |
| credit.amount = 106 | |
| credit.litleTxnId = '100000000000000002' | |
| litleXml = litleOnlineRequest(config) | |
| response = litleXml.sendRequest(credit) | |
| #display results | |
| print "Response: " + response.response | |
| print "Message: " + response.message | |
| print "LitleTransaction ID: " + str(response.litleTxnId) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment