Class coresaletrack

Inheritance diagram for com.payments.core.CoreSaleTrack:

com.payments.core.CoreSaleTrackContactless

Public Member Functions

CoreSaleTrack (BigDecimal amount)
CoreSaleTrack (BigDecimal amount, String orderId)
void setEncryptedTrackData (String encryptedTrackData)
String getEncryptedTrackData ()
void setKsn (String ksn)
String getKsn ()
void setCardTypeBasedOnBin (String maskedPan)
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 track sale request object which is send to a server to be processed.

// Track example CoreSaleTrack sale = new CoreSaleTrack(1.12);
sale.setCardType("VISA");
sale.setCardholderName("Test");
sale.setKsn(0123456789ABCDE000B8);
sale.setEncryptedTrackData("88A7B257E85532501B5406BD95D31C89C5536F49175164DD57F625D9AD2CC5F594F17C12F6A9E886E1744405D68F01043BE2902AEBAF9586");
AndroidTerminal.getInstance().processSale(sale);
// or if you use Java, use JavaTerminal.getInstance().processSale(sale);

Constructor & Destructor Documentation

CoreSaleTrack() [1/2]

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

  • inline

Constructor 1 creates CoreSaleTrack object with the amount.

Parameters

  • amount
  • of a transaction to be processed.

CoreSaleTrack() [2/2]

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

    • String
    • orderId

    • )

  • inline

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

Parameters

  • amount
  • of a transaction to be processed.

  • orderId
  • holds order ID.

Member Function Documentation

getEncryptedTrackData()

    • String com.payments.core.CoreSaleTrack.getEncryptedTrackData
    • (
    • )

  • inline

The String instance representing encrypted track data.

Returns

encryptedTrackData

getKsn()

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

  • inline

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

Returns

ksn

setCardTypeBasedOnBin()

    • void com.payments.core.CoreSaleTrack.setCardTypeBasedOnBin
    • (
    • String
    • maskedPan
    • )

  • inline

Sets card type based on first 6 digits of the card number.

Parameters

  • maskedPan,6
  • digits of the card number

setEncryptedTrackData()

    • void com.payments.core.CoreSaleTrack.setEncryptedTrackData
    • (
    • String
    • encryptedTrackData
    • )

  • inline

Sets the value of encryptedTrackData property.

Parameters

  • encryptedTrackData
  • - encrypted track2 data

setKsn()

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

  • inline

Sets the value of ksn property.

Parameters

  • ksn
  • - key serial number