Class coresaleemv

Inheritance diagram for com.payments.core.CoreSaleEmv:

com.payments.core.common.ResponseJson

Public Member Functions

CoreSaleEmv (BigDecimal amount)
CoreSaleEmv (BigDecimal amount, String orderId)
void setKsn (String ksn)
HashMap< String, String > getEmvTags ()
void setEmvTags (HashMap< String, String > emvTags)
String getKsn ()
String getTlvString ()
void setTlvString (String tlvString)
void setCardTypeBasedOnAid (String aid)
void setEncryptedC2 (String encryptedC2)
String getEncryptedC2 ()
Public Member Functions inherited from com.payments.core.CoreSale
CoreSale ()
CoreSale (BigDecimal amount)
CoreSale (BigDecimal amount, String orderId)
BigDecimal getAmount ()
void setAmount (BigDecimal amount)
String getOrderId ()
void setCardType (String cardType)
String getCardType ()
void addTax (CoreTax tax)
CoreTax getTax ()
void setTip (CoreTip tip)
void addTipWithAmount (BigDecimal tipAmount)
CoreTip getTip ()
Boolean getAutoReady ()
void setFallback (Boolean fallback)
Boolean getFallback ()
void setAutoReady (Boolean autoReady)
CoreSignature getSignature ()
void setSignature (CoreSignature signature)
void setDeviceType (String deviceType)
String getDeviceType ()
String getCardHolderName ()
void setCardHolderName (String cardHolderName)
TransactionType getTransactionType ()
void setTransactionType (TransactionType transactionType)
DebitAccountType getDebitAccountType ()
void setDebitAccountType (DebitAccountType debitAccountType)
int getFirstDigitOfPan ()
void setFirstDigitOfPan (int firstDigitOfPan)
String getSerial ()
void setSerial (String serial)
CoreTransactionInputMethod getTransactionInputMethod ()
void setTransactionInputMethod (CoreTransactionInputMethod transactionInputMethod)
SignatureCollection getSignatureCollection ()
void setSignatureCollection (SignatureCollection signatureCollection)
CoreSecureCard getCoreSecureCard ()
void setCoreSecureCard (CoreSecureCard coreSecureCard)
SaleRequestType getSaleRequestType ()
void setSaleRequestType (SaleRequestType saleRequestType)
TerminalCategory getTerminalCategory ()
void setTerminalCategory (TerminalCategory terminalCategory)
boolean isSignatureRequired ()
void setSignatureRequired (boolean isSignatureRequired)
void setDelayedAuthEnabled (boolean isDelayedAuthEnabled)
boolean isDelayedAuthEnabled ()
void setGiftCard (boolean isGiftCard)
boolean isGiftCard ()
void setFallbackReason (FallbackReason fallbackReason)
FallbackReason getFallbackReason ()
void setDeviceFirmware (String deviceFirmware)
String getDeviceFirmware ()
void setEmvType (CoreEmvType emvType)
CoreEmvType getEmvType ()
void setDateTime (String dateTime)
String getDateTime ()
String getMaskedPAN ()
void setMaskedPAN (String maskedPAN)
void setExpiryDate (String expiryDate)
String getExpiryDate ()
void setEncryptedPinBlock (String encryptedPinBlock)
String getEncryptedPinBlock ()
void setPinBlockKsn (String pinBlockKsn)
String getPinBlockKsn ()
List< CoreCustomField > getCustomFields ()
void setCustomFields (List< CoreCustomField > customFields)
Boolean getContactlessMsr ()
void setContactlessMsr (Boolean contactlessMsr)
Public Member Functions inherited from com.payments.core.common.ResponseJson
String getAsJsonObject ()

Additional Inherited Members

Protected Attributes inherited from com.payments.core.CoreSale
String cardHolderName
String maskedPAN
DebitAccountType debitAccountType = DebitAccountType.NOTSPECIFIED
TransactionType transactionType

Detailed Description

This class represents the emv sale request object which is send to a server to be processed.

// Emv example HashMap&ltString, String&gt emvTags = new HashMap&ltString, String&gt();
emvTags.put("57","D1480CFFECE1036F5BE047B0A788F81C0330DBBF99DBDAA9660F6F4338D439C3");
emvTags.put("82","E35E6B2BE72D447CB01D26D2AE6F7D13");
emvTags.put("95","A8DE9FC48210D6F6F5A8959CBBBADE499D31A54F490E4DAA");
emvTags.put("9A","A2C0C5356A76CDBF1C9E1F86E7A2B9233D5669D542448673");
emvTags.put("9B","0E8D39C23E24D3B0152F4C7F12E75ED5");
emvTags.put("9C","6763A26EE0DBDDE98BA5FB6FC6ACFDBC");
emvTags.put("5F20","ECDC2C46DB83BD33DACBA58FFF65409DDF1C91B9B6954D9394948FBB42825FBA");
emvTags.put("5F34","2724245FCC1A03FD4BD1E1F68EBFDA07");
emvTags.put("9F06","748B993BEFA491F1A13916746A8AAA84F9D4427CF0A38E3C");
emvTags.put("9F10","7E3E764D10ADC6A85A9EB6DD6A7B30EA545C5F17CE67C95A42BBA9D600FD52A2FAA77B15840F5451");
emvTags.put("9F26","B8DE5CD43233675F3AD9A667AD3AC4E34A9EF7B4F0DB44D2");
emvTags.put("9F27","1000DE7DEF34E238E4AB20DFD99F648D");
emvTags.put("9F33","7C0DBBD216BF9723D6242C8DAF0E9E32F7FDF16BFDA81E20");
emvTags.put("9F34","A4B903F78C093A88339EE6D352177BB9D1E1D01767CB0A73");
emvTags.put("9F35","B6E58E4DD1C6C99E232F2A7E83E96764");
emvTags.put("9F36","DCD78468389F95D1F99AAC8D2D948090F3E14A49754C31F2");
emvTags.put("9F37","AB6275DD6F2B66CC4407FAFE32C66E79944CC3E9FD07E914");
emvTags.put("9F42","0E687C636F89C34D5FAE5D3DC56E36338AA5A2C17EBB7D25");
CoreSaleEmv sale = new CoreSaleEmv(1.12);
sale.setCardType("VISA");
sale.setKsn("0123456789ABCDE000BB");
sale.setEmvTags(emvTags);
AndroidTerminal.getInstance().processSale(sale);
// or if you use Java, use JavaTerminal.getInstance().processSale(sale);

Constructor & Destructor Documentation

CoreSaleEmv() [1/2]

    • com.payments.core.CoreSaleEmv.CoreSaleEmv
    • (
    • BigDecimal
    • amount
    • )

  • inline

Constructor 1 creates CoreSaleEmv object with the amount.

Parameters

  • amount
  • of a transaction to be processed.

CoreSaleEmv() [2/2]

    • com.payments.core.CoreSaleEmv.CoreSaleEmv
    • (
    • BigDecimal
    • amount,

    • String
    • orderId

    • )

  • inline

Constructor 2 creates CoreSaleEmv object with the amount and order id.

Parameters

  • amount
  • of a transaction to be processed.

  • orderId
  • holds order ID.

Member Function Documentation

getEmvTags()

    • HashMap<String, String> com.payments.core.CoreSaleEmv.getEmvTags
    • (
    • )

  • inline

The String instance representing emv tags.

Returns

ksn

getEncryptedC2()

    • String com.payments.core.CoreSaleEmv.getEncryptedC2
    • (
    • )

  • inline

The String instance representing encrypted C2 tag.

Returns

ksn

getKsn()

    • String com.payments.core.CoreSaleEmv.getKsn
    • (
    • )

  • inline

The String instance representing KSN key serial number which consists of device Id and device transaction counter.

Returns

ksn

getTlvString()

    • String com.payments.core.CoreSaleEmv.getTlvString
    • (
    • )

  • inline

The String instance representing tlv.

Returns

tlvString

setCardTypeBasedOnAid()

    • void com.payments.core.CoreSaleEmv.setCardTypeBasedOnAid
    • (
    • String
    • aid
    • )

  • inline

Sets card type based on AID.

Parameters

  • aid
  • of the card

setEmvTags()

    • void com.payments.core.CoreSaleEmv.setEmvTags
    • (
    • HashMap< String, String >
    • emvTags
    • )

  • inline

Sets the value of emvTags property.

Parameters

  • emvTags
  • - emv tags

setEncryptedC2()

    • void com.payments.core.CoreSaleEmv.setEncryptedC2
    • (
    • String
    • encryptedC2
    • )

  • inline

Sets the value of encryptedC2 property.

Parameters

  • encryptedC2
  • - key serial number

setKsn()

    • void com.payments.core.CoreSaleEmv.setKsn
    • (
    • String
    • ksn
    • )

  • inline

Sets the value of ksn property.

Parameters

  • ksn
  • - key serial number

setTlvString()

    • void com.payments.core.CoreSaleEmv.setTlvString
    • (
    • String
    • tlvString
    • )

  • inline

Sets the value of tlv string property.

Parameters

  • tlvString
  • - TLV