FDMSDetailRecord Class
Properties Methods Events Config Settings Errors
The FDMSDetailRecord class is a tool used to create off-line Credit or Force transactions to be settled by the FDMSSETTLE class. The FDMSDetailRecord class may also be used to modify the XML aggregates returned by the FDMSRETAIL or FDMSECOMMERCE class's GetDetailAggregate method.
Syntax
class dpaymentssdk.FDMSDetailRecord
Remarks
Credit and Force transactions are off-line transactions. This means that there is no authorization of funds using the FDMSECommerce, FDMSRetail classs. Instead, you must manually add these transactions to the settlement batch. The FDMSDetailRecord class can be used to create these transactions, which can then be added to the FDMSSettle class's DetailRecord array property.
To create a Credit, first set the transaction_type to fttCredit, and then set the industry_type. card_entry_data_source, and direct_marketing_type based on whether you have a card reader, and how your customer is authenticated. The following example shows how this should be set for Direct Marketing:
FDMSDetailRecord.TransactionType = fttCredit
FDMSDetailRecord.IndustryType = fitDirectMarketing
FDMSDetailRecord.CardEntryDataSource = edsManualEntryNoCardReader
FDMSDetailRecord.DirectMarketingType = dmECommerce
Next, set the card_number, card_exp_month, card_exp_year, settlement_amount, and the current transaction_date and transaction_time. Since this example is a Direct Marketing transaction, we're also adding the purchase_identifier. Note that since this is an off-line transaction, the authorized_amount MUST be either zero or empty string.
FDMSDetailRecord.CardNumber = "4444333322221111"
FDMSDetailRecord.CardExpMonth = 3
FDMSDetailRecord.CardExpYear = 2019
FDMSDetailRecord.AuthorizedAmount = "0"
FDMSDetailRecord.SettlementAmount = "5000" '$50.00
FDMSDetailRecord.TransTime = "123456" ' Current time (12:34:56)
FDMSDetailRecord.TransDate = "040506" ' Current date (MMDDYY)
FDMSDetailRecord.PurchaseIdentifier = "123456"
Finally, set the FDMSSettle class's DetailRecord array property with the value returned by the get_detail_aggregate method. You've just added a Credit to the settlement.
FDMSSettle.DetailRecordCount = 1 FDMSSettle.DetailRecordAggregate(0) = FDMSDetailRecord.GetDetailAggregate()
Forced transactions are similar to credits, with the exception that a Forced transaction requires a Voice Authorization code obtained from your acquiring bank's call center. Generally, the purchase of large high-dollar items (cars, appliances, etc) will require the merchant to call and receive a voice authorization. Once this code is received, it should be set to the response_approval_code property. The following example shows a Force transaction in a Retail environment.
FDMSDetailRecord.TransactionType = fttForce
FDMSDetailRecord.IndustryType = fitRetail
FDMSDetailRecord.CardEntryDataSource = edsTrack1
FDMSDetailRecord.CardNumber = "4444333322221111"
FDMSDetailRecord.CardExpMonth = 3
FDMSDetailRecord.CardExpYear = 2019
FDMSDetailRecord.AuthorizedAmount = "0"
FDMSDetailRecord.SettlementAmount = "500000" '$5000.00
FDMSDetailRecord.TransTime = "123456" ' Current time (12:34:56)
FDMSDetailRecord.TransDate = "040506" ' Current date (MMDDYY)
FDMSDetailRecord.ResponseApprovalCode = "123456"
FDMSSettle.DetailRecordCount = 1
FDMSSettle.DetailRecord(0) = FDMSDetailRecord.GetDetailAggregate()
In addition to creating Credit and Force transactions, the FDMSDetailRecord class can be used to adjust the Detail Records returned from the FDMSECommerce and FDMSRetail classs. The most common reasons to modify these detail records are to add a gratuity (tip) to a charge (fitResturant industry_type), or to add a PurchaseIdentifier or Installment payment info (fitDirectMarketing industry_type) to the detail record.
For example, to add a gratuity to a charge:
FDMSDetailRecord.ParseAggregate(FDMSRetail.GetDetailAggregate())
FDMSDetailRecord.Gratuity = "500"
FDMSDetailRecord.TransactionAmount = FDMSDetailRecord.TransactionAmount + FDMSDetailRecord.Gratuity
FDMSSettle.DetailAggregate(0) = FDMSDetailRecord.GetDetailAggregate()
To settle a transaction authorized with the dmtInstallment transaction_type, you must use the FDMSDetailRecord class to add the number of this installment and the total count of all installments to be made. For instance, if the purchase was for "Three easy payments of $19.95", and this is the first payment, then the installment number will be 1, and the installment count 3. An example is included below:
FDMSECommerce.TransactionType = dmtInstallment
FDMSECommerce.TransactionAmount = "1995"
FDMSECommerce.Authorize()
FDMSDetailRecord.ParseAggregate FDMSECommerce.GetDetailAggregate()
FDMSDetailRecord.InstallmentCount = 3
FDMSDetailRecord.InstallmentNumber = 1
FDMSSettle.DetailRecordAggregate(5) = FDMSDetailRecord.GetDetailAggregate()
Property List
The following is the full list of the properties of the class with short descriptions. Click on the links for further details.
authorized_amount | Original amount authorized before any reversals. |
card_entry_data_source | This property identifies the source of the customer data. |
card_exp_month | Expiration month of the credit card specified in CardNumber . |
card_exp_year | Expiration year of the credit card specified in CardNumber . |
card_level_results | Card Level result code returned only for Visa transactions. |
card_number | Customer's credit card number from the original authorization request. |
cash_back | Amount of cash that was returned to the customer. |
debit_receipt | Merchant-generated number that identifies the debit or EBT transaction. |
direct_marketing_type | Specifies the type of transaction to process. |
eci | Electronic Commerce Indicator from the original authorization request. |
gratuity | Gratuity amount for settling restaurant industry transactions. |
industry_type | Code which indicates the industry the merchant is engaged in. |
installment_count | Total number of installments (installment transactions only). |
installment_number | Current installment number (installment transactions only). |
purchase_identifier | Optional purchase order number assigned by the merchant. |
response_approval_code | Response Approval Code from the original authorization response. |
response_avs_result | Address Verification Code from the original authorization response. |
response_returned_aci | Authorization Characteristics Indicator from the original authorization response. |
server_id | Specifies the employee that served the customer. Used for restaurants only. |
settlement_amount | The amount that the customer will be charged. |
ticket_number | Ticket (receipt) number for this transaction. |
transaction_date | Local Transaction Date (in MMDDYY format) from the original authorization response. |
transaction_id | Transaction Identifier from the original authorization response. |
transaction_time | Local transaction time from the original authorization response. |
transaction_type | Indicates transaction type for this detail record. |
validation_code | Validation Code from the original authorization response. |
Method List
The following is the full list of the methods of the class with short descriptions. Click on the links for further details.
config | Sets or retrieves a configuration setting. |
get_detail_aggregate | Returns an aggregate containing details of this transaction, which is then used for settlement. |
parse_aggregate | Parses the aggregate returned from another class's GetDetailAggregate method. |
reset | Clears all properties to their default values. |
Event List
The following is the full list of the events fired by the class with short descriptions. Click on the links for further details.
on_error | Fired when information is available about errors during data delivery. |
Config Settings
The following is a list of config settings for the class with short descriptions. Click on the links for further details.
CurrencyCode | Currency Code for this transaction. |
DCCConversionRate | The DCC Conversion rate. |
DCCIndicator | Status of the Dynamic Currency Conversion. |
DCCTimeZone | The time zone of the merchant where the DCC transaction is taking place. |
DCCUSAmount | The US Dollar Amount for a DCC transaction. |
MSDI | Market Specific Data Indicator. |
BuildInfo | Information about the product's build. |
CodePage | The system code page used for Unicode to Multibyte translations. |
LicenseInfo | Information about the current license. |
MaskSensitive | Whether sensitive data is masked in log messages. |
ProcessIdleEvents | Whether the class uses its internal event loop to process events when the main thread is idle. |
SelectWaitMillis | The length of time in milliseconds the class will wait when DoEvents is called if there are no events to process. |
UseInternalSecurityAPI | Whether or not to use the system security libraries or an internal implementation. |
authorized_amount Property
Original amount authorized before any reversals.
Syntax
def get_authorized_amount() -> str: ... def set_authorized_amount(value: str) -> None: ...
authorized_amount = property(get_authorized_amount, set_authorized_amount)
Default Value
"0"
Remarks
This field contains the transaction amount from the original authorization request message. If any additional authorizations have been made, or the settlement_amount is different than the originally authorized amount (due to items out of stock or adding a gratuity) this property should still reflect the original unchanged amount from the initial authorization request.
card_entry_data_source Property
This property identifies the source of the customer data.
Syntax
def get_card_entry_data_source() -> int: ... def set_card_entry_data_source(value: int) -> None: ...
card_entry_data_source = property(get_card_entry_data_source, set_card_entry_data_source)
Default Value
0
Remarks
Allowable values include: This property contains a 1-character code identifying the source of the customer data.
edsTrack1 (0) | Full Magnetic stripe read and transmit, Track 1. |
edsTrack2 (1) | Full magnetic stripe read and transmit, Track 2. |
edsManualEntryTrack1Capable (2) | Manually keyed, Track 1 capable. |
edsManualEntryTrack2Capable (3) | Manually keyed, Track 2 capable. |
edsManualEntryNoCardReader (4) | Manually keyed, terminal has no card reading capability (use this for e-commerce and MOTO transactions). |
edsTrack1Contactless (5) | Full magnetic stripe read (Track 1 only), Chip Card capable terminal (Visa, Mastercard, and JCB Transactions only). |
edsTrack2Contactless (6) | Full magnetic stripe read (Track 2 only), Chip Card capable terminal (Visa, Mastercard, and JCB Transactions only). |
edsManualEntryContactlessCapable (7) | Manually keyed, Chip Card read capable terminal (Visa, MasterCard, and JCB transactions only). |
card_exp_month Property
Expiration month of the credit card specified in CardNumber .
Syntax
def get_card_exp_month() -> int: ... def set_card_exp_month(value: int) -> None: ...
card_exp_month = property(get_card_exp_month, set_card_exp_month)
Default Value
1
Remarks
This field contains the expiration date of the customer's credit card. This property must be in the range 1 - 12.
card_exp_year Property
Expiration year of the credit card specified in CardNumber .
Syntax
def get_card_exp_year() -> int: ... def set_card_exp_year(value: int) -> None: ...
card_exp_year = property(get_card_exp_year, set_card_exp_year)
Default Value
2000
Remarks
This field contains the expiration date of the customer's credit card. This property must be in the range 0 - 99, or 2000 - 2099. Any date before the year 2000 cannot be specified.
card_level_results Property
Card Level result code returned only for Visa transactions.
Syntax
def get_card_level_results() -> str: ... def set_card_level_results(value: str) -> None: ...
card_level_results = property(get_card_level_results, set_card_level_results)
Default Value
""
Remarks
This property contains a two-character code created by Visa during the authorization process. If the transaction being settled was authorized online, this field must contain the value returned in the authorization response. If the transaction is a credit or was otherwise processed offline, this field should be defaulted to "" (empty string) or two spaces.
card_number Property
Customer's credit card number from the original authorization request.
Syntax
def get_card_number() -> str: ... def set_card_number(value: str) -> None: ...
card_number = property(get_card_number, set_card_number)
Default Value
""
Remarks
This field contains the customer's credit card number used in the original authorization request. This alphanumeric field can be a maximum of 22 characters long, excluding whitespace and dashes which are stripped out when the property is set.
cash_back Property
Amount of cash that was returned to the customer.
Syntax
def get_cash_back() -> str: ... def set_cash_back(value: str) -> None: ...
cash_back = property(get_cash_back, set_cash_back)
Default Value
""
Remarks
This property should reflect the cash back amount from the original debit or EBT card sale. The value sent in the settlement MUST be identical to the amount approved in the sale.
debit_receipt Property
Merchant-generated number that identifies the debit or EBT transaction.
Syntax
def get_debit_receipt() -> str: ... def set_debit_receipt(value: str) -> None: ...
debit_receipt = property(get_debit_receipt, set_debit_receipt)
Default Value
""
Remarks
A merchant must generate a ReceiptNumber for debit and EBT transactions made with the FDMSDebit and FDMSBenefit classs. This receipt number must be passed to the settlement unmodified in this debit_receipt property.
direct_marketing_type Property
Specifies the type of transaction to process.
Syntax
def get_direct_marketing_type() -> int: ... def set_direct_marketing_type(value: int) -> None: ...
direct_marketing_type = property(get_direct_marketing_type, set_direct_marketing_type)
Default Value
0
Remarks
The following types of transactions are supported by this class:
dmECommerce (0) | This is an E-Commerce transaction, and consists of goods or services sold online over the Internet. |
dmMOTO (1) | This is a Mail Order or Telephone Order transaction, and consists of goods sold through the mail or over the phone. |
dmRecurring (2) | This is a recurring payment, such as a magazine subscription or health club membership. |
dmInstallment (3) | This is an installment payment. For example, "Three easy payments of $19.95". |
The value of this property will be ignored when the industry_type is anything other than fitDirectMarketing.
eci Property
Electronic Commerce Indicator from the original authorization request.
Syntax
def get_eci() -> str: ... def set_eci(value: str) -> None: ...
eci = property(get_eci, set_eci)
Default Value
""
Remarks
This field should be identical to the ECI property from the original authorization request. This property is used only for eCommerce and Direct Marketing (card not present) transactions, and is ignored for all Card Present (Retail) transactions.
gratuity Property
Gratuity amount for settling restaurant industry transactions.
Syntax
def get_gratuity() -> str: ... def set_gratuity(value: str) -> None: ...
gratuity = property(get_gratuity, set_gratuity)
Default Value
""
Remarks
This 5 character numeric field contains the gratuity (tip) amount of the transaction being settled. This amount is only sent when the CFDMSSettle class's industry_type is set to "Restaurant".
industry_type Property
Code which indicates the industry the merchant is engaged in.
Syntax
def get_industry_type() -> int: ... def set_industry_type(value: int) -> None: ...
industry_type = property(get_industry_type, set_industry_type)
Default Value
1
Remarks
This property is used to identify the industry type of the merchant submitting the authorization request. The following table lists the industry types supported by this class.
fitUnknown (0) | Unknown or unsure. |
fitRetail (1) | Retail store. |
fitRestaurant (2) | Food / Restaurant. |
fitGroceryStore (3) | Grocery store or supermarket. |
fitDirectMarketing (4) | eCommerce or Direct Marketing |
fitHotel (5) | Hotel / Lodging. |
installment_count Property
Total number of installments (installment transactions only).
Syntax
def get_installment_count() -> int: ... def set_installment_count(value: int) -> None: ...
installment_count = property(get_installment_count, set_installment_count)
Default Value
0
Remarks
This property is used when charging installment payments. The installment_count indicates the total number of installments to be charged to the customer, and the installment_number indicates the current installment which is being charged. Installment payments can only be made for card-not-present transactions initiated by the FDMSECommerce class.
To settle a transaction authorized with the dmtInstallment transaction_type, you must use the FDMSDetailRecord class to add the number of this installment and the total count of all installments to be made. For instance, if the purchase was for "Three easy payments of $19.95", and this is the first payment, then the installment number will be 1, and the installment count 3. An example is included below:
FDMSECommerce.TransactionType = dmtInstallment
FDMSECommerce.TransactionAmount = "1995"
FDMSECommerce.Authorize()
FDMSDetailRecord.ParseAggregate FDMSECommerce.GetDetailAggregate()
FDMSDetailRecord.InstallmentCount = 3
FDMSDetailRecord.InstallmentNumber = 1
FDMSSettle.DetailRecordAggregate(5) = FDMSDetailRecord.GetDetailAggregate()
installment_number Property
Current installment number (installment transactions only).
Syntax
def get_installment_number() -> int: ... def set_installment_number(value: int) -> None: ...
installment_number = property(get_installment_number, set_installment_number)
Default Value
0
Remarks
This property is used when charging installment payments. The installment_count indicates the total number of installments to be charged to the customer, and the installment_number indicates the current installment which is being charged. Installment payments can only be made for card-not-present transactions initiated by the FDMSECommerce class.
To settle a transaction authorized with the dmtInstallment transaction_type, you must use the FDMSDetailRecord class to add the number of this installment and the total count of all installments to be made. For instance, if the purchase was for "Three easy payments of $19.95", and this is the first payment, then the installment number will be 1, and the installment count 3. An example is included below:
FDMSECommerce.TransactionType = dmtInstallment
FDMSECommerce.TransactionAmount = "1995"
FDMSECommerce.Authorize()
FDMSDetailRecord.ParseAggregate FDMSECommerce.GetDetailAggregate()
FDMSDetailRecord.InstallmentCount = 3
FDMSDetailRecord.InstallmentNumber = 1
FDMSSettle.DetailRecordAggregate(5) = FDMSDetailRecord.GetDetailAggregate()
purchase_identifier Property
Optional purchase order number assigned by the merchant.
Syntax
def get_purchase_identifier() -> str: ... def set_purchase_identifier(value: str) -> None: ...
purchase_identifier = property(get_purchase_identifier, set_purchase_identifier)
Default Value
""
Remarks
In this field the merchant may assign an optional Purchase Identifier. This field must contain digits, and has a maximum length of 25 characters. For American Express transactions, only use the first 9 spaces.
response_approval_code Property
Response Approval Code from the original authorization response.
Syntax
def get_response_approval_code() -> str: ... def set_response_approval_code(value: str) -> None: ...
response_approval_code = property(get_response_approval_code, set_response_approval_code)
Default Value
""
Remarks
This field contains the authorization code obtained from the original authorization response. If the transaction is a credit or other non-approved transaction type, this property must be empty.
response_avs_result Property
Address Verification Code from the original authorization response.
Syntax
def get_response_avs_result() -> str: ... def set_response_avs_result(value: str) -> None: ...
response_avs_result = property(get_response_avs_result, set_response_avs_result)
Default Value
"0"
Remarks
This field contains a one character Address Verification (result) Code. This field contains the value returned in the original authorization response message. If the transaction is a credit or was otherwise processed off-line, this field should be defaulted to "0".
response_returned_aci Property
Authorization Characteristics Indicator from the original authorization response.
Syntax
def get_response_returned_aci() -> str: ... def set_response_returned_aci(value: str) -> None: ...
response_returned_aci = property(get_response_returned_aci, set_response_returned_aci)
Default Value
""
Remarks
This field contains a one character returned Authorization Characteristics Indicator. This indicator provides information on conditions or characteristics of the authorization code. If the transaction being settled was authorized on-line, this field must contain the value returned in that authorization response. If the transaction is a credit or was otherwise processed off-line, this field should be defaulted to SPACE.
server_id Property
Specifies the employee that served the customer. Used for restaurants only.
Syntax
def get_server_id() -> str: ... def set_server_id(value: str) -> None: ...
server_id = property(get_server_id, set_server_id)
Default Value
""
Remarks
This property pertains to restaurant transactions, and should be set with a merchant-assigned server Id code. This code identifies the employee which served the customer at the restaurant. This property is required for restaurant transactions, and is ignored for all other industry types. The maximum length for this property is 3.
settlement_amount Property
The amount that the customer will be charged.
Syntax
def get_settlement_amount() -> str: ... def set_settlement_amount(value: str) -> None: ...
settlement_amount = property(get_settlement_amount, set_settlement_amount)
Default Value
"0"
Remarks
This field contains the final settlement amount of the transaction. In most cases, this is the TransactionAmount from the original authorization request. However, you may settle a lesser amount (ie: Partial shipment or backordered stock). If using the Restaurant industry_type, you may also increase the settlement_amount by adding any gratuity (if present).
This field must always be greater than zero.
This amount is to be presented with an implied decimal point. For example, US $10.00 must be represented as 1000, and $0.10 is likewise simply 10. The allowable number of significant digits as well as the positioning of any implied decimal point is dictated by the designated CurrencyCode configuration setting. In the United States (default), the number of allowable significant digits is seven. Thus the maximum transaction_amount is "9999999", yielding a US dollar amount of $99,999.99. This field may not contain a negative number.
ticket_number Property
Ticket (receipt) number for this transaction.
Syntax
def get_ticket_number() -> str: ... def set_ticket_number(value: str) -> None: ...
ticket_number = property(get_ticket_number, set_ticket_number)
Default Value
""
Remarks
This property contains the Ticket number or Receipt of Charge (ROC) for this transaction. This may be optionally sent for any industry_type, but it is required for Restaurant transactions that include a gratuity.
The maximum length of this property is 10 digits.
For example, to add a gratuity to a charge:
FDMSDetailRecord.ParseAggregate(FDMSRetail.GetDetailAggregate())
FDMSDetailRecord.Gratuity = "500"
FDMSDetailRecord.TransactionAmount = FDMSDetailRecord.TransactionAmount + FDMSDetailRecord.Gratuity
FDMSSettle.DetailAggregate(0) = FDMSDetailRecord.GetDetailAggregate()
transaction_date Property
Local Transaction Date (in MMDDYY format) from the original authorization response.
Syntax
def get_transaction_date() -> str: ... def set_transaction_date(value: str) -> None: ...
transaction_date = property(get_transaction_date, set_transaction_date)
Default Value
"010100"
Remarks
This six digit field contains a local transaction date associated with the transaction being settled. If the transaction was authorized on-line, this field must contain the value returned in the original authorization response message. If the transaction was processed off-line, this field must contain a Point of Sale (POS) device generated date. This field must appear in MMDDYY format.
transaction_id Property
Transaction Identifier from the original authorization response.
Syntax
def get_transaction_id() -> str: ... def set_transaction_id(value: str) -> None: ...
transaction_id = property(get_transaction_id, set_transaction_id)
Default Value
"000000000000000"
Remarks
This 15-character field contains a Transaction Identifier associated with the transaction being settled. If the transaction was authorized on-line, this field must contain the value (if returned) from the original authorization response message. If a value was not returned in the authorization response or the transaction was processed off-line, this field must be defaulted to zeros.
transaction_time Property
Local transaction time from the original authorization response.
Syntax
def get_transaction_time() -> str: ... def set_transaction_time(value: str) -> None: ...
transaction_time = property(get_transaction_time, set_transaction_time)
Default Value
"000000"
Remarks
This six digit field contains a local transaction time associated with the transaction being settled. If the transaction was authorized on-line, this field must contain the value generated by the FDMSECommerce or FDMSRetail class at the time of the sale. If the transaction was processed off-line, this field must contain a Point of Sale (POS) device generated time. This field must appear in HHMMSS format.
NOTE: This property is only applicable when settling a debit or EBT transaction, or a credit card transaction that includes Level 2 data, and may be ignored if such data is not being sent.
transaction_type Property
Indicates transaction type for this detail record.
Syntax
def get_transaction_type() -> int: ... def set_transaction_type(value: int) -> None: ...
transaction_type = property(get_transaction_type, set_transaction_type)
Default Value
0
Remarks
This property indicates the type of transaction that is being settled. The following table explains the Transaction Types in detail:
fttSale (0) | The transaction to be settled was a normal authorization and passed into the FDMSDetailRecord class via the parse_aggregate method. |
fttForce (1) | This transaction was not authorized using either the FDMSECommerce or FDMSRetail classs. Instead it is created manually with the FDMSDetailRecord's properties. In order to successfully settle a Forced transaction, you must obtain an authorization code from a call center, and place it in the response_approval_code property. |
fttVoid (2) | When you wish to void a transaction that has been previously authorized, pass the details of the original transaction to the parse_aggregate method, and then change this transaction_type property to fttVoid. |
fttCredit (3) | This transaction type is used to credit money back to a cardholder's account. An (offline) credit is not based on a previous transaction, and you may credit any card for any amount without restriction. Simply set the card_number to the customer's card number, and then the authorized_amount to "0" and the settlement_amount to the amount you wish to refund. No track data or AVS data is sent in an offline credit transaction. |
fttVoidCredit (4) | This transaction voids a previous credit. |
fttDebitSale (5) | Settles an on-line Debit Sale transaction made using the FDMSDebit class. This transaction must not be edited before being settled. (It cannot be voided off-line) |
fttDebitRefund (6) | Settles an on-line Debit Credit transaction made using the FDMSDebit class. |
fttFoodStampSale (8) | Settles an on-line Food Stamp Sale or Voucher Clear made using the FDMSBenefit class. |
fttFoodStampRefund (9) | Settles an on-line Food Stamp Credit or Voucher Clear made using the FDMSBenefit class. |
fttCashBenefitSale (10) | Settles an on-line Cash Benefit sale made using the FDMSBenefit class. |
fttCashBenefitWithdrawal (11) | Settles an on-line Cash Withdrawl (Cash Only) transaction made using the FDMSBenefit class. |
Note: The fttSale and fttVoid transaction_types require a previous authorization to work on. fttForce and fttCredit, however, are offline transactions. This means there is no original authorization to work from. The transaction is created solely with this class's properties and is settled without ever having been authorized. Just fill out the properties and sent the FDMSSettle class's DetailAggregate array property with the results from the FDMSDetailRecord's get_detail_aggregate method. The remaining debit, food stamp, and cash benefit transactions may not be edited, voided, or otherwise modified before settlement. The detail aggregates should be set directly to the FDMSSettle class's DetailAggregate array property, and should never be manipulated with the FDMSDetailRecord class.
validation_code Property
Validation Code from the original authorization response.
Syntax
def get_validation_code() -> str: ... def set_validation_code(value: str) -> None: ...
validation_code = property(get_validation_code, set_validation_code)
Default Value
""
Remarks
This field contains a four character Transaction Identifier associated with the transaction being settled. If the transaction was authorized on-line, this field must contain the value (if returned) from the original authorization response message. If a value was not returned in the authorization response or the transaction was processed off-line, this field must be empty.
config Method
Sets or retrieves a configuration setting.
Syntax
def config(configuration_string: str) -> str: ...
Remarks
config is a generic method available in every class. It is used to set and retrieve configuration settings for the class.
These settings are similar in functionality to properties, but they are rarely used. In order to avoid "polluting" the property namespace of the class, access to these internal properties is provided through the config method.
To set a configuration setting named PROPERTY, you must call Config("PROPERTY=VALUE"), where VALUE is the value of the setting expressed as a string. For boolean values, use the strings "True", "False", "0", "1", "Yes", or "No" (case does not matter).
To read (query) the value of a configuration setting, you must call Config("PROPERTY"). The value will be returned as a string.
get_detail_aggregate Method
Returns an aggregate containing details of this transaction, which is then used for settlement.
Syntax
def get_detail_aggregate() -> str: ...
Remarks
This method returns an aggregate containing all of the required data to send a transaction to settlement. This aggregate must be passed to the FDMSSettle class's DetailAggregate array property in order to settle the transaction. If you wish to view or change any part of the aggregate (such as adding a gratuity or additional info for an Installment payment), you may use the FDMSDetailRecord class to do so.
Note: This method may only be called after a successful authorization. If the authorization was not successful (and the response_capture_flag is false) the method fails with an error.
An example of how this method is used is shown below:
FDMSRetail.AuthorizeTrack1()
If (FDMSRetail.ResponseCaptureFlag = True) Then
FDMSSettle.DetailRecordCount = FDMSSettle.DetailRecordCount + 1
FDMSSettle.DetailRecordsAggregate[FDMSSettle.DetailRecordCount - 1] = FDMSRetail.GetDetailAggregate()
End If
parse_aggregate Method
Parses the aggregate returned from another class's GetDetailAggregate method.
Syntax
def parse_aggregate(aggregate: str) -> None: ...
Remarks
This method takes the XML aggregate returned from the FDMSRetail or FDMSECommerce class, parses it, and then fills all the properties of the FDMSDetailRecord class. While normally you can pass the results of the get_detail_aggregate method call directly to the FDMSSettle class, sometimes it is necessary to adjust the contents of the XML aggregate first.
For example, to add a gratuity to a charge:
FDMSDetailRecord.ParseAggregate(FDMSRetail.GetDetailAggregate())
FDMSDetailRecord.Gratuity = "500"
FDMSDetailRecord.TransactionAmount = FDMSDetailRecord.TransactionAmount + FDMSDetailRecord.Gratuity
FDMSSettle.DetailAggregate(0) = FDMSDetailRecord.GetDetailAggregate()
reset Method
Clears all properties to their default values.
Syntax
def reset() -> None: ...
Remarks
This method clears all properties to their default values.
on_error Event
Fired when information is available about errors during data delivery.
Syntax
class FDMSDetailRecordErrorEventParams(object): @property def error_code() -> int: ... @property def description() -> str: ... # In class FDMSDetailRecord: @property def on_error() -> Callable[[FDMSDetailRecordErrorEventParams], None]: ... @on_error.setter def on_error(event_hook: Callable[[FDMSDetailRecordErrorEventParams], None]) -> None: ...
Remarks
The on_error event is fired in case of exceptional conditions during message processing. Normally the class fails with an error.
The ErrorCode parameter contains an error code, and the Description parameter contains a textual description of the error. For a list of valid error codes and their descriptions, please refer to the Error Codes section.
FDMSDetailRecord Config Settings
The class accepts one or more of the following configuration settings. Configuration settings are similar in functionality to properties, but they are rarely used. In order to avoid "polluting" the property namespace of the class, access to these internal properties is provided through the config method.FDMSDetailRecord Config Settings
Value | Description |
"" [Empty String] (default) | Not a DCC transaction |
1 | Converted |
2 | Not convertible |
3 | Convertible but declined by the cardholder |
4 | Reserved for future use |
Base Config Settings
The following is a list of valid code page identifiers:
Identifier | Name |
037 | IBM EBCDIC - U.S./Canada |
437 | OEM - United States |
500 | IBM EBCDIC - International |
708 | Arabic - ASMO 708 |
709 | Arabic - ASMO 449+, BCON V4 |
710 | Arabic - Transparent Arabic |
720 | Arabic - Transparent ASMO |
737 | OEM - Greek (formerly 437G) |
775 | OEM - Baltic |
850 | OEM - Multilingual Latin I |
852 | OEM - Latin II |
855 | OEM - Cyrillic (primarily Russian) |
857 | OEM - Turkish |
858 | OEM - Multilingual Latin I + Euro symbol |
860 | OEM - Portuguese |
861 | OEM - Icelandic |
862 | OEM - Hebrew |
863 | OEM - Canadian-French |
864 | OEM - Arabic |
865 | OEM - Nordic |
866 | OEM - Russian |
869 | OEM - Modern Greek |
870 | IBM EBCDIC - Multilingual/ROECE (Latin-2) |
874 | ANSI/OEM - Thai (same as 28605, ISO 8859-15) |
875 | IBM EBCDIC - Modern Greek |
932 | ANSI/OEM - Japanese, Shift-JIS |
936 | ANSI/OEM - Simplified Chinese (PRC, Singapore) |
949 | ANSI/OEM - Korean (Unified Hangul Code) |
950 | ANSI/OEM - Traditional Chinese (Taiwan; Hong Kong SAR, PRC) |
1026 | IBM EBCDIC - Turkish (Latin-5) |
1047 | IBM EBCDIC - Latin 1/Open System |
1140 | IBM EBCDIC - U.S./Canada (037 + Euro symbol) |
1141 | IBM EBCDIC - Germany (20273 + Euro symbol) |
1142 | IBM EBCDIC - Denmark/Norway (20277 + Euro symbol) |
1143 | IBM EBCDIC - Finland/Sweden (20278 + Euro symbol) |
1144 | IBM EBCDIC - Italy (20280 + Euro symbol) |
1145 | IBM EBCDIC - Latin America/Spain (20284 + Euro symbol) |
1146 | IBM EBCDIC - United Kingdom (20285 + Euro symbol) |
1147 | IBM EBCDIC - France (20297 + Euro symbol) |
1148 | IBM EBCDIC - International (500 + Euro symbol) |
1149 | IBM EBCDIC - Icelandic (20871 + Euro symbol) |
1200 | Unicode UCS-2 Little-Endian (BMP of ISO 10646) |
1201 | Unicode UCS-2 Big-Endian |
1250 | ANSI - Central European |
1251 | ANSI - Cyrillic |
1252 | ANSI - Latin I |
1253 | ANSI - Greek |
1254 | ANSI - Turkish |
1255 | ANSI - Hebrew |
1256 | ANSI - Arabic |
1257 | ANSI - Baltic |
1258 | ANSI/OEM - Vietnamese |
1361 | Korean (Johab) |
10000 | MAC - Roman |
10001 | MAC - Japanese |
10002 | MAC - Traditional Chinese (Big5) |
10003 | MAC - Korean |
10004 | MAC - Arabic |
10005 | MAC - Hebrew |
10006 | MAC - Greek I |
10007 | MAC - Cyrillic |
10008 | MAC - Simplified Chinese (GB 2312) |
10010 | MAC - Romania |
10017 | MAC - Ukraine |
10021 | MAC - Thai |
10029 | MAC - Latin II |
10079 | MAC - Icelandic |
10081 | MAC - Turkish |
10082 | MAC - Croatia |
12000 | Unicode UCS-4 Little-Endian |
12001 | Unicode UCS-4 Big-Endian |
20000 | CNS - Taiwan |
20001 | TCA - Taiwan |
20002 | Eten - Taiwan |
20003 | IBM5550 - Taiwan |
20004 | TeleText - Taiwan |
20005 | Wang - Taiwan |
20105 | IA5 IRV International Alphabet No. 5 (7-bit) |
20106 | IA5 German (7-bit) |
20107 | IA5 Swedish (7-bit) |
20108 | IA5 Norwegian (7-bit) |
20127 | US-ASCII (7-bit) |
20261 | T.61 |
20269 | ISO 6937 Non-Spacing Accent |
20273 | IBM EBCDIC - Germany |
20277 | IBM EBCDIC - Denmark/Norway |
20278 | IBM EBCDIC - Finland/Sweden |
20280 | IBM EBCDIC - Italy |
20284 | IBM EBCDIC - Latin America/Spain |
20285 | IBM EBCDIC - United Kingdom |
20290 | IBM EBCDIC - Japanese Katakana Extended |
20297 | IBM EBCDIC - France |
20420 | IBM EBCDIC - Arabic |
20423 | IBM EBCDIC - Greek |
20424 | IBM EBCDIC - Hebrew |
20833 | IBM EBCDIC - Korean Extended |
20838 | IBM EBCDIC - Thai |
20866 | Russian - KOI8-R |
20871 | IBM EBCDIC - Icelandic |
20880 | IBM EBCDIC - Cyrillic (Russian) |
20905 | IBM EBCDIC - Turkish |
20924 | IBM EBCDIC - Latin-1/Open System (1047 + Euro symbol) |
20932 | JIS X 0208-1990 & 0121-1990 |
20936 | Simplified Chinese (GB2312) |
21025 | IBM EBCDIC - Cyrillic (Serbian, Bulgarian) |
21027 | Extended Alpha Lowercase |
21866 | Ukrainian (KOI8-U) |
28591 | ISO 8859-1 Latin I |
28592 | ISO 8859-2 Central Europe |
28593 | ISO 8859-3 Latin 3 |
28594 | ISO 8859-4 Baltic |
28595 | ISO 8859-5 Cyrillic |
28596 | ISO 8859-6 Arabic |
28597 | ISO 8859-7 Greek |
28598 | ISO 8859-8 Hebrew |
28599 | ISO 8859-9 Latin 5 |
28605 | ISO 8859-15 Latin 9 |
29001 | Europa 3 |
38598 | ISO 8859-8 Hebrew |
50220 | ISO 2022 Japanese with no halfwidth Katakana |
50221 | ISO 2022 Japanese with halfwidth Katakana |
50222 | ISO 2022 Japanese JIS X 0201-1989 |
50225 | ISO 2022 Korean |
50227 | ISO 2022 Simplified Chinese |
50229 | ISO 2022 Traditional Chinese |
50930 | Japanese (Katakana) Extended |
50931 | US/Canada and Japanese |
50933 | Korean Extended and Korean |
50935 | Simplified Chinese Extended and Simplified Chinese |
50936 | Simplified Chinese |
50937 | US/Canada and Traditional Chinese |
50939 | Japanese (Latin) Extended and Japanese |
51932 | EUC - Japanese |
51936 | EUC - Simplified Chinese |
51949 | EUC - Korean |
51950 | EUC - Traditional Chinese |
52936 | HZ-GB2312 Simplified Chinese |
54936 | Windows XP: GB18030 Simplified Chinese (4 Byte) |
57002 | ISCII Devanagari |
57003 | ISCII Bengali |
57004 | ISCII Tamil |
57005 | ISCII Telugu |
57006 | ISCII Assamese |
57007 | ISCII Oriya |
57008 | ISCII Kannada |
57009 | ISCII Malayalam |
57010 | ISCII Gujarati |
57011 | ISCII Punjabi |
65000 | Unicode UTF-7 |
65001 | Unicode UTF-8 |
Identifier | Name |
1 | ASCII |
2 | NEXTSTEP |
3 | JapaneseEUC |
4 | UTF8 |
5 | ISOLatin1 |
6 | Symbol |
7 | NonLossyASCII |
8 | ShiftJIS |
9 | ISOLatin2 |
10 | Unicode |
11 | WindowsCP1251 |
12 | WindowsCP1252 |
13 | WindowsCP1253 |
14 | WindowsCP1254 |
15 | WindowsCP1250 |
21 | ISO2022JP |
30 | MacOSRoman |
10 | UTF16String |
0x90000100 | UTF16BigEndian |
0x94000100 | UTF16LittleEndian |
0x8c000100 | UTF32String |
0x98000100 | UTF32BigEndian |
0x9c000100 | UTF32LittleEndian |
65536 | Proprietary |
- Product: The product the license is for.
- Product Key: The key the license was generated from.
- License Source: Where the license was found (e.g., RuntimeLicense, License File).
- License Type: The type of license installed (e.g., Royalty Free, Single Server).
- Last Valid Build: The last valid build number for which the license will work.
This setting only works on these classes: AS3Receiver, AS3Sender, Atom, Client(3DS), FTP, FTPServer, IMAP, OFTPClient, SSHClient, SCP, Server(3DS), Sexec, SFTP, SFTPServer, SSHServer, TCPClient, TCPServer.
Setting this configuration setting to True tells the class to use the internal implementation instead of using the system security libraries.
On Windows, this setting is set to False by default. On Linux/macOS, this setting is set to True by default.
To use the system security libraries for Linux, OpenSSL support must be enabled. For more information on how to enable OpenSSL, please refer to the OpenSSL Notes section.
FDMSDetailRecord Errors
FDMSDetailRecord Errors
501 Data field invalid length. | |
502 Data field invalid format. | |
503 Data field out of range. | |
592 Invalid or unparseable aggregate. | |
605 Invalid CardType. |