HostPaymentData

public final class HostPaymentData

The Payment Data object is introduced to reflect the nexo/ISO20022 structure that encapsulates the data elements required to execute the required transaction, such as the Instrument used e.g. card and the authentication details (e.g. the actual signature or the encrypted PIN block if captured).

Fields

mBillingCity

final String mBillingCity

mBillingCountry

final String mBillingCountry

mBillingCountrySubdivision

final String mBillingCountrySubdivision

mBillingPostCode

final String mBillingPostCode

mBillingStreet

final String mBillingStreet

mCardBrand

final String mCardBrand

mCardDataCvv

final String mCardDataCvv

mCardDataCvvKsn

final String mCardDataCvvKsn

mCardDataEmvTags

final HashMap<String, String> mCardDataEmvTags

mCardDataEncryptionType

final CardEncryptionType mCardDataEncryptionType

mCardDataEparms

final String mCardDataEparms

mCardDataExpiry

final String mCardDataExpiry

mCardDataExpiryKsn

final String mCardDataExpiryKsn

mCardDataPan

final String mCardDataPan

mCardDataPanKsn

final String mCardDataPanKsn

mCardDataTrack2

final String mCardDataTrack2

mCardDataTrack2Ksn

final String mCardDataTrack2Ksn

mCardproduct

final String mCardproduct

mInstrumentType

final InstrumentType mInstrumentType

mMaskedCardNumber

final String mMaskedCardNumber

mPinEncrytpedData

final String mPinEncrytpedData

mPinKeySerialNumber

final String mPinKeySerialNumber

Constructors

HostPaymentData

public HostPaymentData(String billingStreet, String billingCity, String billingCountrySubdivision, String billingPostCode, String billingCountry, String pinEncrytpedData, String pinKeySerialNumber, InstrumentType instrumentType, String maskedCardNumber, HashMap<String, String> cardDataEmvTags, String cardDataEparms, CardEncryptionType cardDataEncryptionType, String cardDataTrack2, String cardDataTrack2Ksn, String cardDataPan, String cardDataPanKsn, String cardDataExpiry, String cardDataExpiryKsn, String cardDataCvv, String cardDataCvvKsn, String cardBrand, String cardproduct)

Methods

getBillingCity

public String getBillingCity()

Customer Billing Address City Name of a built-up area, with defined boundaries, and a local government. This could be city or town.

getBillingCountry

public String getBillingCountry()

Customer Billing Address Country The ISO 3166-1 alpha-3 country code.

getBillingCountrySubdivision

public String getBillingCountrySubdivision()

Customer Billing Address Country Subdivision Identifies a sub-division of a country which may be state, region or county.

getBillingPostCode

public String getBillingPostCode()

Customer Billing Address Postal Code Identifier consisting of a group of letters and/or numbers that is added to a postal address to assist the sorting of mail

getBillingStreet

public String getBillingStreet()

Customer Billing Address Street

getCardBrand

public String getCardBrand()

Represents a Card type or brand. It should correspond to a consistent name, the list of constants is in CardInformation

getCardDataCvv

public String getCardDataCvv()

CVV - Used for Manual Entry

getCardDataCvvKsn

public String getCardDataCvvKsn()

CVV Key Serial Number - Used for Manual Entry NOTE: This is optional. If encryption is based on the encryption used

getCardDataEmvTags

public HashMap<String, String> getCardDataEmvTags()

To identify the type of encryptionKey whether it is a Verifone keys, Acquirer/Customer keys or none.

getCardDataEncryptionType

public CardEncryptionType getCardDataEncryptionType()

Encryption Type CardEncryptionType()

getCardDataEparms

public String getCardDataEparms()

VCL AES-DUKPT encryption requires the use of eParms which is an additional blob of encrypted data associated with the encrypted track data.

getCardDataExpiry

public String getCardDataExpiry()

Expiry - Used for Manual Entry

getCardDataExpiryKsn

public String getCardDataExpiryKsn()

Expiry Key Serial Number - Used for Manual Entry NOTE: This is optional. If encryption is based on the encryption used

getCardDataPan

public String getCardDataPan()

PAN - Used for Manual Entry

getCardDataPanKsn

public String getCardDataPanKsn()

PAN Key Serial Number - Used for Manual Entry NOTE: This is optional. If encryption is based on the encryption used

getCardDataTrack2

public String getCardDataTrack2()

Encrypted Blob Base-64 converted variable length blob.

getCardDataTrack2Ksn

public String getCardDataTrack2Ksn()

Track2 Key Serial Number NOTE: This is optional. If encryption is based on the encryption used

getCardproduct

public String getCardproduct()

The product name associated with the card brand. e.g. Classic, Standard, Gold, Platinum, World. This must correspond to an actual product name.

getInstrumentType

public InstrumentType getInstrumentType()

To identify the type of instrument whether it is a card, token or other… see InstrumentType

getMaskedCardNumber

public String getMaskedCardNumber()

The masked value for the Card Number.

getPinEncrytpedData

public String getPinEncrytpedData()

Encrypted PIN. (Personal Identification Number). The PIN data associated with the Card holder or Customer (where known). This value should be an encrypted representation of the PIN. This is attribute ISO8583 DE52. This value can never be persisted or logged. Authentication Online PinData EncryptedPINBlock The encrypted PIN content as a string.

getPinKeySerialNumber

public String getPinKeySerialNumber()

Authentication Online PinData EncryptedPINBlock The KSN is a constructed element that has multiple parts. In DUKPT 2009 this identification information is referred to as a Key Serial Number (KSN) sent by the initiator of the message to uniquely identify the derived key at the recipient. This is the first 5 bytes of the KSN. The structure should follow the standard: Issuer Identification Number - 3 bytes Merchant ID - 1 byte Group ID - 1 byte Device ID - 19 bits Transaction Counter 21 bits.

toString

public String toString()