This repository has been archived by the owner on Jul 19, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
Config Settings
brianarnold789 edited this page Sep 21, 2016
·
4 revisions
Config setting apply to every transaction done using that configuration. To change the settings on one individual transaction, use the optional sendRequest arguments. For example, if you would like to change the report group on a particular transaction, while sending the request simply use
litleXml = litleOnlineRequest(config)
response = litleXml.sendRequest(authorization, reportGroup="Report Group 2")
Required Field. Your merchant's unique user Id. Merchants can have multiple merchant Id Report Group
Defaulted to the version the SDK was intended for. All future minor revisions are backwards compatible Url
Required for anything other than testing. Defaulted to "Sandbox", the Litle test environment. Can be set to "prelive", "postlive", "Prod", or any custom url. Use "Prod" to go live. Proxy
Defaulted to False. If set to true, transaction request and response XML will be printed.
from litleSdkPython.litleOnlineRequest import *
config = Configuration()
config.user = "DanAndCo"
config.password = "thisIsMyPassword"
config.merchantId = "12345"
config.reportGroup = "Report Group 1"
config.proxy = "MY_PROXY:1234"
config.timeout = 60
config.url = "Sandbox"
config.printXml = True