Vantiv eCommerce Python SDK 9.12!¶
EXAMPLES¶
Using dict¶
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 | #Example for SDK
from __future__ import print_function, unicode_literals
from vantivsdk import *
# Initial Configuration object. If you have saved configuration in '.vantiv_python_sdk.conf' at system environment
# variable: VANTIV_SDK_CONFIG or user home directory, the saved configuration will be automatically load.
conf = utils.Configuration()
# Configuration need following attributes for online request:
# attributes = default value
# user = ''
# password = ''
# merchantId = ''
# reportGroup = 'Default Report Group'
# url = 'https://www.testlitle.com/sandbox/communicator/online'
# proxy = ''
# print_xml = False
# Transaction presented by dict
txn_dict ={
'authorization':{
'orderId': '1',
'amount': 10010,
'orderSource': 'ecommerce',
'id': 'ThisIsRequiredby11',
'billToAddress': {
'name': 'John & Mary Smith',
'addressLine1': '1 Main St.',
'city': 'Burlington',
'state': 'MA',
'zip': '01803-3747',
'country': 'USA'
},
'card': {
'number': '4100000000000000',
'expDate': '1215',
'cardValidationNum' : '349',
'type': 'VI'
},
'enhancedData':{
'detailTax': [
{'taxAmount':100},
{'taxAmount':200},
],
}
}
}
# Send request to server and get response as dict
response = online.request(txn_dict, conf)
print('Message: %s' % response['authorizationResponse']['message'])
print('LitleTransaction ID: %s' % response['authorizationResponse']['litleTxnId'])
# Configuration need following attributes for batch request:
# attributes = default value
# sftp_username = ''
# sftp_password = ''
# sftp_url = ''
# batch_requests_path = '/tmp/vantiv_sdk_batch_request'
# batch_response_path = '/tmp/vantiv_sdk_batch_response'
# fast_url = ''
# fast_ssl = True
# fast_port = ''
# id = ''
# Initial batch transactions container class
transactions = batch.Transactions()
# Add transaction to batch transactions container
transactions.add(txn_dict)
# Sent batch to server via socket and get response as dict
response = batch.stream(transactions, conf)
print('Message: %s' % response['batchResponse']['authorizationResponse']['message'])
print('LitleTransaction ID: %s' % response['batchResponse']['authorizationResponse']['litleTxnId'])
|
Using object¶
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 | #Example for SDK
from __future__ import print_function, unicode_literals
from vantivsdk import *
# Initial Configuration object. If you have saved configuration in '.vantiv_python_sdk.conf' at system environment
# variable: VANTIV_SDK_CONFIG or user home directory, the saved configuration will be automatically load.
conf = utils.Configuration()
# Configuration need following attributes for online request:
# attributes = default value
# user = ''
# password = ''
# merchantId = ''
# reportGroup = 'Default Report Group'
# url = 'https://www.testlitle.com/sandbox/communicator/online'
# proxy = ''
# print_xml = False
# Initial Transaction.
transaction = fields.authorization()
transaction.orderId = '1'
transaction.amount = 10010
transaction.orderSource = 'ecommerce'
transaction.id = 'ThisIsRequiredby11'
# Create contact object
contact = fields.contact()
contact.name = 'John & Mary Smith'
contact.addressLine1 = '1 Main St.'
contact.city = 'Burlington'
contact.state = 'MA'
contact.zip = '01803-3747'
contact.country = 'USA'
# The type of billToAddress is contact
transaction.billToAddress = contact
# Create cardType object
card = fields.cardType()
card.number = '4100000000000000'
card.expDate = '1215'
card.cardValidationNum = '349'
card.type = 'VI'
# The type of card is cardType
transaction.card = card
# detail tax
detailTaxList = list()
detailTax = fields.detailTax()
detailTax.taxAmount = 100
detailTaxList.append(detailTax)
detailTax2 = fields.detailTax()
detailTax2.taxAmount = 200
detailTaxList.append(detailTax2)
enhancedData = fields.enhancedData()
enhancedData.detailTax = detailTaxList
# Send request to server and get response as dict
response = online.request(transaction, conf)
print('Message: %s' % response['authorizationResponse']['message'])
print('LitleTransaction ID: %s' % response['authorizationResponse']['litleTxnId'])
# Configuration need following attributes for batch request:
# attributes = default value
# sftp_username = ''
# sftp_password = ''
# sftp_url = ''
# batch_requests_path = '/tmp/vantiv_sdk_batch_request'
# batch_response_path = '/tmp/vantiv_sdk_batch_response'
# fast_url = ''
# fast_ssl = True
# fast_port = ''
# id = ''
# Initial batch transactions container class
transactions = batch.Transactions()
# Add transaction to batch transactions container
transactions.add(transaction)
# Sent batch to server via socket and get response as dict
response = batch.stream(transactions, conf)
print('Message: %s' % response['batchResponse']['authorizationResponse']['message'])
print('LitleTransaction ID: %s' % response['batchResponse']['authorizationResponse']['litleTxnId'])
|
API¶
batch.stream¶
vantivsdk.batch.
stream
(transactions, conf, return_format='dict', timeout_send=60, timeout_rev=2)¶stream batch request to IBC (inbound batch communicator) via socket and get return object
Parameters:
- transactions – an instance of batch.Transactions.
- conf – An instance of utils.Configuration.
- return_format – Return format. The default is ‘dict’. Could be one of ‘dict’, ‘object’ or ‘xml’.
- timeout_send – Positive int. Timeout in second for socket connection when sending.
- timeout_rev – Positive int. Timeout in second for socket connection when receiving.
Returns: response XML in desired format.
batch.download¶
vantivsdk.batch.
download
(filename, conf, delete_remote=False, timeout=60)¶Download Processed Session File from server via sFTP
Get xml file from server and save to local file system
Parameters:
- filename – filename of file in outbound folder at remote server with ‘.asc’ as extension.
- conf – An instance of utils.Configuration.
- delete_remote – If delete the remote file after download. The default is False
- timeout – Timeout in second for ssh connection for sftp.
Returns: path for file that saved in local file system.
Raises: Exception depends on when get it.
batch.submit¶
vantivsdk.batch.
submit
(transactions, conf, filename='', timeout=60)¶Submitting a Session File for Processing to server via sFTP
- Generate litleRequest xml.
- Save xml at local file system.
- Send xml file to server.
Parameters:
- transactions – an instance of batch.Transactions.
- conf – An instance of utils.Configuration.
- filename – String. File name for generated xml file. If the file exist, a timestamp string will be added.
- timeout – Positive int. Timeout in second for ssh connection for sftp.
Returns: filename of file in inbound folder at remote server with ‘.asc’ as extension.
Raises: Exception depends on when get it.
batch.retrieve¶
vantivsdk.batch.
retrieve
(filename, conf, return_format='dict', save_to_local=False, delete_remote=False, timeout=60)¶Retrieving Processed Session File from server via sFTP
- Get xml file string from server and return object
- If save_to_local, save to local file system
Parameters:
- filename – filename of file in outbound folder at remote server with ‘.asc’ as extension.
- conf – An instance of utils.Configuration.
- return_format – Return format. The default is ‘dict’. Could be one of ‘dict’, ‘object’ or ‘xml’.
- save_to_local – whether save file to local. default is false.
- delete_remote – If delete the remote file after download. The default is False
- timeout – Timeout in second for ssh connection for sftp.
Returns: response XML in desired format.
Raises: Exception depends on when get it.
batch.Transactions¶
- class
vantivsdk.batch.
Transactions
¶Container of transactions for batch request
Then transactions could be RFRRequest and any batch request supported transactions and recurringTransaction. RFRRequest cannot exist in the same instance with any other transactions.
A instance cannot contain more than 1,000,000 transactions.
add
(transaction)¶Add transaction to the container class.
Parameters: transaction – an instance of Transactions or RFRRequest which could process by Batch. Returns: None Raises: Exceptions.
is_rfr_request
¶A property, whether current instanc include a RFRRequest
Returns: Boolean
recurringTransactions
¶A property, return a new list of recurringTransactions.
Returns: list of recurringTransactions
transactions
¶A property, return a new list of transactions.
Returns: list of transactions
online.request¶
vantivsdk.online.
request
(transaction, conf, return_format='dict', timeout=30)¶Send request to server.
Parameters:
- transaction – An instance of transaction class
- conf – An instance of utils.Configuration
- return_format – Return format. The default is ‘dict’. Could be one of ‘dict’, ‘object’ or ‘xml’.
- timeout – timeout for the request in seconds. timeout is not a time limit on the entire response.
- the time that server has not issued a response. (It's) –
Returns: response XML in desired format.
Raises:
VantivExceptions.
utils.Configuration¶
- class
vantivsdk.utils.
Configuration
(conf_dict={})¶Setup Configuration variables.
user
¶Str – authentication.user
password
¶Str – authentication.password
merchantId
¶Str – The unique string to identify the merchant within the system.
reportGroup
¶Str – To separate your transactions into different categories,
url
¶Str – Url for server.
sftp_username
¶Str – Username for sftp
sftp_password
¶Str – Password for sftp
sftp_url
¶Str – Address for sftp
batch_requests_path
¶Str – Location for saving generated batch request xml
batch_response_path
¶Str – Location for saving batch response xml
fast_url
¶Str – Fast address, using for batch stream
fast_port
¶Str – Fast port, using for batch stream
print_xml
¶Str – Whether print request and response xml
save
()¶Save Class Attributes to .vantiv_python_sdk.conf
Returns: full path for configuration file. Raises: IOError
– An error occurred
Transactions¶
accountUpdate¶
- class
vantivsdk.fields.
accountUpdate
¶
Variables:
- cardOrToken – instance of
vantivsdk.fields.card
,vantivsdk.fields.token
,- customerId – String or Number
- id – String or Number
- orderId – String or Number
- reportGroup – String or Number
activate¶
- class
vantivsdk.fields.
activate
¶
Variables:
- amount – String or Number
- card – instance of
vantivsdk.fields.cardType
- customerId – String or Number
- id – String or Number
- orderId – String or Number
- orderSource – String or Number
- reportGroup – String or Number
- virtualGiftCard – instance of
vantivsdk.fields.virtualGiftCardType
activateReversal¶
- class
vantivsdk.fields.
activateReversal
¶
Variables:
- customerId – String or Number
- id – String or Number
- litleTxnId – String or Number
- reportGroup – String or Number
authReversal¶
- class
vantivsdk.fields.
authReversal
¶
Variables:
- actionReason – String or Number
- amount – String or Number
- customerId – String or Number
- id – String or Number
- litleTxnId – String or Number
- payPalNotes – String or Number
- reportGroup – String or Number
- surchargeAmount – String or Number
authorization¶
Variables:
- advancedFraudChecks – instance of
vantivsdk.fields.advancedFraudChecksType
- allowPartialAuth – String or Number
- amexAggregatorData – instance of
vantivsdk.fields.amexAggregatorData
- amount – String or Number
- applepay – instance of
vantivsdk.fields.applepayType
- billMeLaterRequest – instance of
vantivsdk.fields.billMeLaterRequest
- billToAddress – instance of
vantivsdk.fields.billToAddress
- card – instance of
vantivsdk.fields.cardType
- cardholderAuthentication – instance of
vantivsdk.fields.fraudCheckType
- customBilling – instance of
vantivsdk.fields.customBilling
- customerId – String or Number
- customerInfo – instance of
vantivsdk.fields.customerInfo
- debtRepayment – String or Number
- enhancedData – instance of
vantivsdk.fields.enhancedData
- filtering – instance of
vantivsdk.fields.filteringType
- fraudFilterOverride – String or Number
- healthcareIIAS – instance of
vantivsdk.fields.healthcareIIAS
- id – String or Number
- litleTxnId – String or Number
- merchantData – instance of
vantivsdk.fields.merchantDataType
- mpos – instance of
vantivsdk.fields.mposType
- orderId – String or Number
- orderSource – String or Number
- originalNetworkTransactionId – String or Number
- originalTransactionAmount – String or Number
- paypage – instance of
vantivsdk.fields.cardPaypageType
- paypal – instance of
vantivsdk.fields.payPal
- pos – instance of
vantivsdk.fields.pos
- processingInstructions – instance of
vantivsdk.fields.processingInstructions
- processingType – String or Number
- recurringRequest – instance of
vantivsdk.fields.recurringRequestType
- recyclingRequest – instance of
vantivsdk.fields.recyclingRequestType
- reportGroup – String or Number
- secondaryAmount – String or Number
- shipToAddress – instance of
vantivsdk.fields.shipToAddress
- surchargeAmount – String or Number
- taxType – String or Number
- token – instance of
vantivsdk.fields.cardTokenType
- wallet – instance of
vantivsdk.fields.wallet
balanceInquiry¶
- class
vantivsdk.fields.
balanceInquiry
¶
Variables:
- card – instance of
vantivsdk.fields.cardType
- customerId – String or Number
- id – String or Number
- orderId – String or Number
- orderSource – String or Number
- reportGroup – String or Number
cancelSubscription¶
- class
vantivsdk.fields.
cancelSubscription
¶
Variables: subscriptionId – String or Number
capture¶
- class
vantivsdk.fields.
capture
¶
Variables:
- amount – String or Number
- customBilling – instance of
vantivsdk.fields.customBilling
- customerId – String or Number
- enhancedData – instance of
vantivsdk.fields.enhancedData
- id – String or Number
- litleTxnId – String or Number
- partial – String or Number
- payPalNotes – String or Number
- payPalOrderComplete – String or Number
- pin – String or Number
- processingInstructions – instance of
vantivsdk.fields.processingInstructions
- reportGroup – String or Number
- surchargeAmount – String or Number
captureGivenAuth¶
- class
vantivsdk.fields.
captureGivenAuth
¶
Variables:
- amexAggregatorData – instance of
vantivsdk.fields.amexAggregatorData
- amount – String or Number
- authInformation – instance of
vantivsdk.fields.authInformation
- billMeLaterRequest – instance of
vantivsdk.fields.billMeLaterRequest
- billToAddress – instance of
vantivsdk.fields.billToAddress
- card – instance of
vantivsdk.fields.cardType
- customBilling – instance of
vantivsdk.fields.customBilling
- customerId – String or Number
- debtRepayment – String or Number
- enhancedData – instance of
vantivsdk.fields.enhancedData
- id – String or Number
- merchantData – instance of
vantivsdk.fields.merchantDataType
- mpos – instance of
vantivsdk.fields.mposType
- orderId – String or Number
- orderSource – String or Number
- originalNetworkTransactionId – String or Number
- originalTransactionAmount – String or Number
- paypage – instance of
vantivsdk.fields.cardPaypageType
- pos – instance of
vantivsdk.fields.pos
- processingInstructions – instance of
vantivsdk.fields.processingInstructions
- processingType – String or Number
- reportGroup – String or Number
- secondaryAmount – String or Number
- shipToAddress – instance of
vantivsdk.fields.shipToAddress
- surchargeAmount – String or Number
- taxType – String or Number
- token – instance of
vantivsdk.fields.cardTokenType
createPlan¶
- class
vantivsdk.fields.
createPlan
¶
Variables:
- active – String or Number
- amount – String or Number
- description – String or Number
- intervalType – String or Number
- name – String or Number
- numberOfPayments – String or Number
- planCode – String or Number
- trialIntervalType – String or Number
- trialNumberOfIntervals – String or Number
credit¶
- class
vantivsdk.fields.
credit
¶
Variables:
- actionReason – String or Number
- amexAggregatorData – instance of
vantivsdk.fields.amexAggregatorData
- amount – String or Number
- billMeLaterRequest – instance of
vantivsdk.fields.billMeLaterRequest
- billToAddress – instance of
vantivsdk.fields.billToAddress
- card – instance of
vantivsdk.fields.cardType
- customBilling – instance of
vantivsdk.fields.customBilling
- customerId – String or Number
- enhancedData – instance of
vantivsdk.fields.enhancedData
- id – String or Number
- litleTxnId – String or Number
- merchantData – instance of
vantivsdk.fields.merchantDataType
- mpos – instance of
vantivsdk.fields.mposType
- orderId – String or Number
- orderSource – String or Number
- payPalNotes – String or Number
- paypage – instance of
vantivsdk.fields.cardPaypageType
- paypal – instance of
vantivsdk.fields.payPal
- pin – String or Number
- pos – instance of
vantivsdk.fields.pos
- processingInstructions – instance of
vantivsdk.fields.processingInstructions
- reportGroup – String or Number
- secondaryAmount – String or Number
- surchargeAmount – String or Number
- taxType – String or Number
- token – instance of
vantivsdk.fields.cardTokenType
deactivate¶
- class
vantivsdk.fields.
deactivate
¶
Variables:
- card – instance of
vantivsdk.fields.cardType
- customerId – String or Number
- id – String or Number
- orderId – String or Number
- orderSource – String or Number
- reportGroup – String or Number
deactivateReversal¶
- class
vantivsdk.fields.
deactivateReversal
¶
Variables:
- customerId – String or Number
- id – String or Number
- litleTxnId – String or Number
- reportGroup – String or Number
depositReversal¶
- class
vantivsdk.fields.
depositReversal
¶
Variables:
- customerId – String or Number
- id – String or Number
- litleTxnId – String or Number
- reportGroup – String or Number
echeckCredit¶
- class
vantivsdk.fields.
echeckCredit
¶
Variables:
- amount – String or Number
- billToAddress – instance of
vantivsdk.fields.billToAddress
- customBilling – instance of
vantivsdk.fields.customBilling
- customerId – String or Number
- echeckOrEcheckToken – instance of
vantivsdk.fields.echeck
,vantivsdk.fields.echeckToken
,- id – String or Number
- litleTxnId – String or Number
- merchantData – instance of
vantivsdk.fields.merchantDataType
- orderId – String or Number
- orderSource – String or Number
- reportGroup – String or Number
- secondaryAmount – String or Number
echeckPreNoteCredit¶
- class
vantivsdk.fields.
echeckPreNoteCredit
¶
Variables:
- billToAddress – instance of
vantivsdk.fields.billToAddress
- customerId – String or Number
- echeck – instance of
vantivsdk.fields.echeck
- id – String or Number
- merchantData – instance of
vantivsdk.fields.merchantDataType
- orderId – String or Number
- orderSource – String or Number
- reportGroup – String or Number
echeckPreNoteSale¶
- class
vantivsdk.fields.
echeckPreNoteSale
¶
Variables:
- billToAddress – instance of
vantivsdk.fields.billToAddress
- customerId – String or Number
- echeck – instance of
vantivsdk.fields.echeck
- id – String or Number
- merchantData – instance of
vantivsdk.fields.merchantDataType
- orderId – String or Number
- orderSource – String or Number
- reportGroup – String or Number
echeckRedeposit¶
- class
vantivsdk.fields.
echeckRedeposit
¶
Variables:
- customerId – String or Number
- echeckOrEcheckToken – instance of
vantivsdk.fields.echeck
,vantivsdk.fields.echeckToken
,- id – String or Number
- litleTxnId – String or Number
- merchantData – instance of
vantivsdk.fields.merchantDataType
- reportGroup – String or Number
echeckSale¶
- class
vantivsdk.fields.
echeckSale
¶
Variables:
- amount – String or Number
- billToAddress – instance of
vantivsdk.fields.billToAddress
- customBilling – instance of
vantivsdk.fields.customBilling
- customerId – String or Number
- echeckOrEcheckToken – instance of
vantivsdk.fields.echeck
,vantivsdk.fields.echeckToken
,- id – String or Number
- litleTxnId – String or Number
- merchantData – instance of
vantivsdk.fields.merchantDataType
- orderId – String or Number
- orderSource – String or Number
- reportGroup – String or Number
- secondaryAmount – String or Number
- shipToAddress – instance of
vantivsdk.fields.shipToAddress
- verify – String or Number
echeckVerification¶
- class
vantivsdk.fields.
echeckVerification
¶
Variables:
- amount – String or Number
- billToAddress – instance of
vantivsdk.fields.billToAddress
- customerId – String or Number
- echeckOrEcheckToken – instance of
vantivsdk.fields.echeck
,vantivsdk.fields.echeckToken
,- id – String or Number
- litleTxnId – String or Number
- merchantData – instance of
vantivsdk.fields.merchantDataType
- orderId – String or Number
- orderSource – String or Number
- reportGroup – String or Number
echeckVoid¶
- class
vantivsdk.fields.
echeckVoid
¶
Variables:
- customerId – String or Number
- id – String or Number
- litleTxnId – String or Number
- reportGroup – String or Number
forceCapture¶
- class
vantivsdk.fields.
forceCapture
¶
Variables:
- amexAggregatorData – instance of
vantivsdk.fields.amexAggregatorData
- amount – String or Number
- billToAddress – instance of
vantivsdk.fields.billToAddress
- card – instance of
vantivsdk.fields.cardType
- customBilling – instance of
vantivsdk.fields.customBilling
- customerId – String or Number
- debtRepayment – String or Number
- enhancedData – instance of
vantivsdk.fields.enhancedData
- id – String or Number
- merchantData – instance of
vantivsdk.fields.merchantDataType
- mpos – instance of
vantivsdk.fields.mposType
- orderId – String or Number
- orderSource – String or Number
- paypage – instance of
vantivsdk.fields.cardPaypageType
- pos – instance of
vantivsdk.fields.pos
- processingInstructions – instance of
vantivsdk.fields.processingInstructions
- processingType – String or Number
- reportGroup – String or Number
- secondaryAmount – String or Number
- surchargeAmount – String or Number
- taxType – String or Number
- token – instance of
vantivsdk.fields.cardTokenType
fraudCheck¶
- class
vantivsdk.fields.
fraudCheck
¶
Variables:
- advancedFraudChecks – instance of
vantivsdk.fields.advancedFraudChecksType
- amount – String or Number
- billToAddress – instance of
vantivsdk.fields.billToAddress
- customerId – String or Number
- id – String or Number
- reportGroup – String or Number
- shipToAddress – instance of
vantivsdk.fields.shipToAddress
load¶
- class
vantivsdk.fields.
load
¶
Variables:
- amount – String or Number
- card – instance of
vantivsdk.fields.cardType
- customerId – String or Number
- id – String or Number
- orderId – String or Number
- orderSource – String or Number
- reportGroup – String or Number
loadReversal¶
- class
vantivsdk.fields.
loadReversal
¶
Variables:
- customerId – String or Number
- id – String or Number
- litleTxnId – String or Number
- reportGroup – String or Number
payFacCredit¶
- class
vantivsdk.fields.
payFacCredit
¶
Variables:
- amount – String or Number
- customerId – String or Number
- fundingSubmerchantId – String or Number
- fundsTransferId – String or Number
- id – String or Number
- reportGroup – String or Number
payFacDebit¶
- class
vantivsdk.fields.
payFacDebit
¶
Variables:
- amount – String or Number
- customerId – String or Number
- fundingSubmerchantId – String or Number
- fundsTransferId – String or Number
- id – String or Number
- reportGroup – String or Number
physicalCheckCredit¶
- class
vantivsdk.fields.
physicalCheckCredit
¶
Variables:
- amount – String or Number
- customerId – String or Number
- fundingSubmerchantId – String or Number
- fundsTransferId – String or Number
- id – String or Number
- reportGroup – String or Number
physicalCheckDebit¶
- class
vantivsdk.fields.
physicalCheckDebit
¶
Variables:
- amount – String or Number
- customerId – String or Number
- fundingSubmerchantId – String or Number
- fundsTransferId – String or Number
- id – String or Number
- reportGroup – String or Number
queryTransaction¶
- class
vantivsdk.fields.
queryTransaction
¶
Variables:
- customerId – String or Number
- id – String or Number
- origAccountNumber – String or Number
- origActionType – String or Number
- origId – String or Number
- origLitleTxnId – String or Number
- origOrderId – String or Number
- reportGroup – String or Number
refundReversal¶
- class
vantivsdk.fields.
refundReversal
¶
Variables:
- customerId – String or Number
- id – String or Number
- litleTxnId – String or Number
- reportGroup – String or Number
registerTokenRequest¶
- class
vantivsdk.fields.
registerTokenRequest
¶
Variables:
- accountNumber – String or Number
- applepay – instance of
vantivsdk.fields.applepayType
- cardValidationNum – String or Number
- customerId – String or Number
- echeckForToken – instance of
vantivsdk.fields.echeckForTokenType
- id – String or Number
- mpos – instance of
vantivsdk.fields.mposType
- orderId – String or Number
- paypageRegistrationId – String or Number
- reportGroup – String or Number
reserveCredit¶
- class
vantivsdk.fields.
reserveCredit
¶
Variables:
- amount – String or Number
- customerId – String or Number
- fundingSubmerchantId – String or Number
- fundsTransferId – String or Number
- id – String or Number
- reportGroup – String or Number
reserveDebit¶
- class
vantivsdk.fields.
reserveDebit
¶
Variables:
- amount – String or Number
- customerId – String or Number
- fundingSubmerchantId – String or Number
- fundsTransferId – String or Number
- id – String or Number
- reportGroup – String or Number
sale¶
- class
vantivsdk.fields.
sale
¶
Variables:
- advancedFraudChecks – instance of
vantivsdk.fields.advancedFraudChecksType
- allowPartialAuth – String or Number
- amexAggregatorData – instance of
vantivsdk.fields.amexAggregatorData
- amount – String or Number
- applepay – instance of
vantivsdk.fields.applepayType
- billMeLaterRequest – instance of
vantivsdk.fields.billMeLaterRequest
- billToAddress – instance of
vantivsdk.fields.billToAddress
- card – instance of
vantivsdk.fields.cardType
- cardholderAuthentication – instance of
vantivsdk.fields.fraudCheckType
- customBilling – instance of
vantivsdk.fields.customBilling
- customerId – String or Number
- customerInfo – instance of
vantivsdk.fields.customerInfo
- debtRepayment – String or Number
- enhancedData – instance of
vantivsdk.fields.enhancedData
- filtering – instance of
vantivsdk.fields.filteringType
- fraudCheck – instance of
vantivsdk.fields.fraudCheckType
- fraudFilterOverride – String or Number
- healthcareIIAS – instance of
vantivsdk.fields.healthcareIIAS
- id – String or Number
- ideal – instance of
vantivsdk.fields.idealType
- litleInternalRecurringRequest – instance of
vantivsdk.fields.litleInternalRecurringRequestType
- litleTxnId – String or Number
- merchantData – instance of
vantivsdk.fields.merchantDataType
- mpos – instance of
vantivsdk.fields.mposType
- orderId – String or Number
- orderSource – String or Number
- originalNetworkTransactionId – String or Number
- originalTransactionAmount – String or Number
- payPalNotes – String or Number
- payPalOrderComplete – String or Number
- paypage – instance of
vantivsdk.fields.cardPaypageType
- paypal – instance of
vantivsdk.fields.payPal
- pos – instance of
vantivsdk.fields.pos
- processingInstructions – instance of
vantivsdk.fields.processingInstructions
- processingType – String or Number
- recurringRequest – instance of
vantivsdk.fields.recurringRequestType
- recyclingRequest – instance of
vantivsdk.fields.recyclingRequestType
- reportGroup – String or Number
- secondaryAmount – String or Number
- sepaDirectDebit – instance of
vantivsdk.fields.sepaDirectDebitType
- shipToAddress – instance of
vantivsdk.fields.shipToAddress
- surchargeAmount – String or Number
- taxType – String or Number
- token – instance of
vantivsdk.fields.cardTokenType
- wallet – instance of
vantivsdk.fields.wallet
submerchantCredit¶
- class
vantivsdk.fields.
submerchantCredit
¶
Variables:
- accountInfo – instance of
vantivsdk.fields.echeckType
- amount – String or Number
- customerId – String or Number
- fundingSubmerchantId – String or Number
- fundsTransferId – String or Number
- id – String or Number
- reportGroup – String or Number
- submerchantName – String or Number
submerchantDebit¶
- class
vantivsdk.fields.
submerchantDebit
¶
Variables:
- accountInfo – instance of
vantivsdk.fields.echeckType
- amount – String or Number
- customerId – String or Number
- fundingSubmerchantId – String or Number
- fundsTransferId – String or Number
- id – String or Number
- reportGroup – String or Number
- submerchantName – String or Number
unload¶
- class
vantivsdk.fields.
unload
¶
Variables:
- amount – String or Number
- card – instance of
vantivsdk.fields.cardType
- customerId – String or Number
- id – String or Number
- orderId – String or Number
- orderSource – String or Number
- reportGroup – String or Number
unloadReversal¶
- class
vantivsdk.fields.
unloadReversal
¶
Variables:
- customerId – String or Number
- id – String or Number
- litleTxnId – String or Number
- reportGroup – String or Number
updateCardValidationNumOnToken¶
- class
vantivsdk.fields.
updateCardValidationNumOnToken
¶
Variables:
- cardValidationNum – String or Number
- customerId – String or Number
- id – String or Number
- litleToken – String or Number
- orderId – String or Number
- reportGroup – String or Number
updatePlan¶
- class
vantivsdk.fields.
updatePlan
¶
Variables:
- active – String or Number
- planCode – String or Number
updateSubscription¶
- class
vantivsdk.fields.
updateSubscription
¶
Variables:
- billToAddress – instance of
vantivsdk.fields.billToAddress
- billingDate – String or Number
- card – instance of
vantivsdk.fields.cardType
- createAddOn – instance of
vantivsdk.fields.createAddOnType
- createDiscount – instance of
vantivsdk.fields.createDiscountType
- deleteAddOn – instance of
vantivsdk.fields.deleteAddOnType
- deleteDiscount – instance of
vantivsdk.fields.deleteDiscountType
- paypage – instance of
vantivsdk.fields.cardPaypageType
- planCode – String or Number
- subscriptionId – String or Number
- token – instance of
vantivsdk.fields.cardTokenType
- updateAddOn – instance of
vantivsdk.fields.updateAddOnType
- updateDiscount – instance of
vantivsdk.fields.updateDiscountType
vendorCredit¶
- class
vantivsdk.fields.
vendorCredit
¶
Variables:
- accountInfo – instance of
vantivsdk.fields.echeckType
- amount – String or Number
- customerId – String or Number
- fundingSubmerchantId – String or Number
- fundsTransferId – String or Number
- id – String or Number
- reportGroup – String or Number
- vendorName – String or Number
vendorDebit¶
- class
vantivsdk.fields.
vendorDebit
¶
Variables:
- accountInfo – instance of
vantivsdk.fields.echeckType
- amount – String or Number
- customerId – String or Number
- fundingSubmerchantId – String or Number
- fundsTransferId – String or Number
- id – String or Number
- reportGroup – String or Number
- vendorName – String or Number
void¶
- class
vantivsdk.fields.
void
¶
Variables:
- customerId – String or Number
- id – String or Number
- litleTxnId – String or Number
- processingInstructions – instance of
vantivsdk.fields.processingInstructions
- reportGroup – String or Number
Complex Types¶
advancedFraudChecksType¶
- class
vantivsdk.fields.
advancedFraudChecksType
¶
Variables:
- customAttribute1 – String or Number
- customAttribute2 – String or Number
- customAttribute3 – String or Number
- customAttribute4 – String or Number
- customAttribute5 – String or Number
- threatMetrixSessionId – String or Number
advancedFraudResultsType¶
- class
vantivsdk.fields.
advancedFraudResultsType
¶
Variables:
- deviceReputationScore – String or Number
- deviceReviewStatus – String or Number
- triggeredRule – String or Number
amexAggregatorData¶
- class
vantivsdk.fields.
amexAggregatorData
¶
Variables:
- sellerId – String or Number
- sellerMerchantCategoryCode – String or Number
applepayHeaderType¶
- class
vantivsdk.fields.
applepayHeaderType
¶
Variables:
- applicationData – String or Number
- ephemeralPublicKey – String or Number
- publicKeyHash – String or Number
- transactionId – String or Number
applepayType¶
- class
vantivsdk.fields.
applepayType
¶
Variables:
- data – String or Number
- header – instance of
vantivsdk.fields.applepayHeaderType
- signature – String or Number
- version – String or Number
authInformation¶
- class
vantivsdk.fields.
authInformation
¶
Variables:
- authAmount – String or Number
- authCode – String or Number
- authDate – String or Number
- fraudResult – instance of
vantivsdk.fields.fraudResult
billMeLaterRequest¶
- class
vantivsdk.fields.
billMeLaterRequest
¶
Variables:
- authorizationSourcePlatform – String or Number
- bmlMerchantId – String or Number
- bmlProductType – instance of
vantivsdk.fields.bmlProductType
- customerBillingAddressChanged – String or Number
- customerEmailChanged – String or Number
- customerPasswordChanged – String or Number
- customerPhoneChanged – String or Number
- itemCategoryCode – String or Number
- merchantPromotionalCode – String or Number
- preapprovalNumber – String or Number
- secretQuestionAnswer – String or Number
- secretQuestionCode – String or Number
- termsAndConditions – String or Number
- virtualAuthenticationKeyData – String or Number
- virtualAuthenticationKeyPresenceIndicator – String or Number
billToAddress¶
- class
vantivsdk.fields.
billToAddress
¶
Variables:
- addressLine1 – String or Number
- addressLine2 – String or Number
- addressLine3 – String or Number
- city – String or Number
- companyName – String or Number
- country – String or Number
- email – String or Number
- firstName – String or Number
- lastName – String or Number
- middleInitial – String or Number
- name – String or Number
- phone – String or Number
- state – String or Number
- zip – String or Number
card¶
- class
vantivsdk.fields.
card
¶
Variables:
- cardValidationNum – String or Number
- expDate – String or Number
- number – String or Number
- pin – String or Number
- track – String or Number
- type – String or Number
cardPaypageType¶
- class
vantivsdk.fields.
cardPaypageType
¶
Variables:
- cardValidationNum – String or Number
- expDate – String or Number
- paypageRegistrationId – String or Number
- type – String or Number
cardTokenType¶
- class
vantivsdk.fields.
cardTokenType
¶
Variables:
- cardValidationNum – String or Number
- expDate – String or Number
- litleToken – String or Number
- type – String or Number
cardType¶
- class
vantivsdk.fields.
cardType
¶
Variables:
- cardValidationNum – String or Number
- expDate – String or Number
- number – String or Number
- pin – String or Number
- track – String or Number
- type – String or Number
createAddOnType¶
- class
vantivsdk.fields.
createAddOnType
¶
Variables:
- addOnCode – String or Number
- amount – String or Number
- endDate – String or Number
- name – String or Number
- startDate – String or Number
createDiscountType¶
- class
vantivsdk.fields.
createDiscountType
¶
Variables:
- amount – String or Number
- discountCode – String or Number
- endDate – String or Number
- name – String or Number
- startDate – String or Number
customBilling¶
customerInfo¶
- class
vantivsdk.fields.
customerInfo
¶
Variables:
- customerCheckingAccount – String or Number
- customerRegistrationDate – String or Number
- customerSavingAccount – String or Number
- customerType – String or Number
- customerWorkTelephone – String or Number
- dob – String or Number
- employerName – String or Number
- incomeAmount – String or Number
- incomeCurrency – String or Number
- residenceStatus – String or Number
- ssn – String or Number
- yearsAtEmployer – String or Number
- yearsAtResidence – String or Number
deleteDiscountType¶
- class
vantivsdk.fields.
deleteDiscountType
¶
Variables: discountCode – String or Number
detailTax¶
- class
vantivsdk.fields.
detailTax
¶
Variables:
- cardAcceptorTaxId – String or Number
- taxAmount – String or Number
- taxIncludedInTotal – String or Number
- taxRate – String or Number
- taxTypeIdentifier – String or Number
echeck¶
- class
vantivsdk.fields.
echeck
¶
Variables:
- accNum – String or Number
- accType – String or Number
- ccdPaymentInformation – String or Number
- checkNum – String or Number
- routingNum – String or Number
echeckForTokenType¶
- class
vantivsdk.fields.
echeckForTokenType
¶
Variables:
- accNum – String or Number
- routingNum – String or Number
echeckToken¶
- class
vantivsdk.fields.
echeckToken
¶
Variables:
- accType – String or Number
- checkNum – String or Number
- litleToken – String or Number
- routingNum – String or Number
echeckType¶
- class
vantivsdk.fields.
echeckType
¶
Variables:
- accNum – String or Number
- accType – String or Number
- ccdPaymentInformation – String or Number
- checkNum – String or Number
- routingNum – String or Number
enhancedData¶
- class
vantivsdk.fields.
enhancedData
¶
Variables:
- customerReference – String or Number
- deliveryType – String or Number
- destinationCountryCode – String or Number
- destinationPostalCode – String or Number
- detailTax – instance of
vantivsdk.fields.detailTax
- discountAmount – String or Number
- dutyAmount – String or Number
- invoiceReferenceNumber – String or Number
- lineItemData – instance of
vantivsdk.fields.lineItemData
- orderDate – String or Number
- salesTax – String or Number
- shipFromPostalCode – String or Number
- shippingAmount – String or Number
- taxExempt – String or Number
filteringType¶
- class
vantivsdk.fields.
filteringType
¶
Variables:
- chargeback – String or Number
- international – String or Number
- prepaid – String or Number
fraudCheckType¶
- class
vantivsdk.fields.
fraudCheckType
¶
Variables:
- authenticatedByMerchant – String or Number
- authenticationTransactionId – String or Number
- authenticationValue – String or Number
- customerIpAddress – String or Number
fraudResult¶
- class
vantivsdk.fields.
fraudResult
¶
Variables:
- advancedAVSResult – String or Number
- advancedFraudResults – instance of
vantivsdk.fields.advancedFraudResultsType
- authenticationResult – String or Number
- avsResult – String or Number
- cardValidationResult – String or Number
healthcareAmounts¶
- class
vantivsdk.fields.
healthcareAmounts
¶
Variables:
- RxAmount – String or Number
- clinicOtherAmount – String or Number
- dentalAmount – String or Number
- totalHealthcareAmount – String or Number
- visionAmount – String or Number
healthcareIIAS¶
- class
vantivsdk.fields.
healthcareIIAS
¶
Variables:
- IIASFlag – String or Number
- healthcareAmounts – instance of
vantivsdk.fields.healthcareAmounts
lineItemData¶
- class
vantivsdk.fields.
lineItemData
¶
Variables:
- commodityCode – String or Number
- detailTax – instance of
vantivsdk.fields.detailTax
- itemDescription – String or Number
- itemDiscountAmount – String or Number
- itemSequenceNumber – String or Number
- lineItemTotal – String or Number
- lineItemTotalWithTax – String or Number
- productCode – String or Number
- quantity – String or Number
- taxAmount – String or Number
- unitCost – String or Number
- unitOfMeasure – String or Number
litleInternalRecurringRequestType¶
- class
vantivsdk.fields.
litleInternalRecurringRequestType
¶
Variables:
- finalPayment – String or Number
- recurringTxnId – String or Number
- subscriptionId – String or Number
merchantDataType¶
- class
vantivsdk.fields.
merchantDataType
¶
Variables:
- affiliate – String or Number
- campaign – String or Number
- merchantGroupingId – String or Number
mposType¶
- class
vantivsdk.fields.
mposType
¶
Variables:
- encryptedTrack – String or Number
- formatId – String or Number
- ksn – String or Number
- track1Status – String or Number
- track2Status – String or Number
payPal¶
pos¶
- class
vantivsdk.fields.
pos
¶
Variables:
- capability – String or Number
- cardholderId – String or Number
- catLevel – String or Number
- entryMode – String or Number
- terminalId – String or Number
processingInstructions¶
- class
vantivsdk.fields.
processingInstructions
¶
Variables: bypassVelocityCheck – String or Number
recurringRequestType¶
- class
vantivsdk.fields.
recurringRequestType
¶
Variables: subscription – instance of vantivsdk.fields.recurringSubscriptionType
recurringSubscriptionType¶
- class
vantivsdk.fields.
recurringSubscriptionType
¶
Variables:
- amount – String or Number
- createAddOn – instance of
vantivsdk.fields.createAddOnType
- createDiscount – instance of
vantivsdk.fields.createDiscountType
- numberOfPayments – String or Number
- planCode – String or Number
- startDate – String or Number
recyclingRequestType¶
- class
vantivsdk.fields.
recyclingRequestType
¶
Variables:
- recycleBy – String or Number
- recycleId – String or Number
sepaDirectDebitType¶
- class
vantivsdk.fields.
sepaDirectDebitType
¶
Variables:
- iban – String or Number
- mandateProvider – String or Number
- mandateReference – String or Number
- mandateSignatureDate – String or Number
- mandateUrl – String or Number
- preferredLanguage – String or Number
- sequenceType – String or Number
shipToAddress¶
- class
vantivsdk.fields.
shipToAddress
¶
Variables:
- addressLine1 – String or Number
- addressLine2 – String or Number
- addressLine3 – String or Number
- city – String or Number
- companyName – String or Number
- country – String or Number
- email – String or Number
- firstName – String or Number
- lastName – String or Number
- middleInitial – String or Number
- name – String or Number
- phone – String or Number
- state – String or Number
- zip – String or Number
token¶
- class
vantivsdk.fields.
token
¶
Variables:
- cardValidationNum – String or Number
- expDate – String or Number
- litleToken – String or Number
- type – String or Number
updateAddOnType¶
- class
vantivsdk.fields.
updateAddOnType
¶
Variables:
- addOnCode – String or Number
- amount – String or Number
- endDate – String or Number
- name – String or Number
- startDate – String or Number
updateDiscountType¶
- class
vantivsdk.fields.
updateDiscountType
¶
Variables:
- amount – String or Number
- discountCode – String or Number
- endDate – String or Number
- name – String or Number
- startDate – String or Number