Skip to content

Instantly share code, notes, and snippets.

@VantivSDK
Created June 7, 2012 20:01
Show Gist options
  • Select an option

  • Save VantivSDK/2891232 to your computer and use it in GitHub Desktop.

Select an option

Save VantivSDK/2891232 to your computer and use it in GitHub Desktop.
Python SDK- Litle Partial Auth Reversal Tranasaction
from litleSdkPython.litleOnlineRequest import *
config = Configuration()
config.setUser("User")
config.setPassword("Pass")
config.setMerchantId("123")
config.setUrl("Sandbox")
config.setProxy("")
#Partial Auth Reversal
#litleTxnId contains the Litle Transaction Id returned on the authorization
authreversal = litleXmlFields.authReversal()
authreversal.litleTxnId = 350000000000000001
authreversal.amount = 20020
litleXml = litleOnlineRequest(config)
response = litleXml.sendRequest(authreversal)
#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