E-Payment Integrator 2020 Python Edition

Questions / Feedback?

CardValidator Class

Properties   Methods   Events   Configuration Settings   Errors  

The CardValidator class is used to verify that a given credit card number is formatted properly, and could be a valid card number. Validating a card before actually submitting a transaction for authorization can reduce the fees that may be associated with invalid or declined transactions.

Syntax

class inpay.CardValidator

Remarks

Utilization of this class catches accidentally mistyped card numbers and allows buyers to re-input their number without having the transaction declined. It can also determine the type of credit card (Visa, MasterCard, Discover, etc) to easily determine if the customer is presenting a payment type which you do not support. The class can also parse swiped track data and perform these same checks on it.

There are three checks performed on the customer's credit card information:

The card number is checked for validity using the Luhn mod-10 algorithm.
The type of the card (Visa, MasterCard, etc.) is computed from the card number.
The expiration date is checked against the current system date.

The validate_card method explains these checks in more detail.

Property List


The following is the full list of the properties of the class with short descriptions. Click on the links for further details.

card_exp_monthExpiration month of the credit card specified in CardNumber .
card_exp_yearExpiration year of the credit card specified in CardNumber .
card_numberCredit card number to be validated.
card_typeIndicates the results of the Luhn Digit Check algorithm.
card_type_descriptionHuman-readable description of the CardType .
date_check_passedIndicates whether the card is expired or not.
digit_check_passedIndicates the results of the Luhn Digit Check algorithm.
track_dataMagnetic stripe data read off the credit card.
track_typeIndicates the type of the specified TrackData .

Method List


The following is the full list of the methods of the class with short descriptions. Click on the links for further details.

configSets or retrieves a configuration setting.
resetClears all properties to their default values.
validate_cardChecks the card number and expiration date for validity.

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_errorInformation about errors during data delivery.

Configuration Settings


The following is a list of configuration settings for the class with short descriptions. Click on the links for further details.

NameOnCardThe name encoded in the track data on the credit card.
BuildInfoInformation about the product's build.
CodePageThe system code page used for Unicode to Multibyte translations.
LicenseInfoInformation about the current license.
ProcessIdleEventsWhether the class uses its internal event loop to process events when the main thread is idle.
SelectWaitMillisThe length of time in milliseconds the class will wait when DoEvents is called if there are no events to process.
UseInternalSecurityAPITells the class whether or not to use the system security libraries or an internal implementation.

Copyright (c) 2021 /n software inc. - All rights reserved.
E-Payment Integrator 2020 Python Edition - Version 20.0 [Build 7941]