Class coresalekeyed

Inheritance diagram for com.payments.core.CoreSaleKeyed:

com.payments.core.common.ResponseJson

Public Member Functions

CoreSaleKeyed (BigDecimal amount)
CoreSaleKeyed (BigDecimal amount, String orderId)
void setCardNumber (String cardNumber)
String getCardNumber ()
void setCardCvv (String cardCvv)
String getCardCvv ()
String getAvsAddress1 ()
void setAvsAddress1 (String avsAddress1)
String getAvsPostCode ()
void setAvsPostCode (String avsPostCode)
String getEncryptedData ()
void setEncryptedData (String encryptedData)
String getKsn ()
void setKsn (String ksn)
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 keyed request object which is send to a server to be processed.

// Keyed example CoreSaleKeyed sale = new CoreSaleKeyed(1.12);
sale.setCardholderName("Test");
sale.setCardNumber("4111111111111111");
sale.setCardCvv("123");
sale.setCardType("VISA");
sale.setExpiryDate("1215");
AndroidTerminal.getInstance().processSale(sale);
// or if you use Java, use JavaTerminal.getInstance().processSale(sale);

Constructor & Destructor Documentation

CoreSaleKeyed() [1/2]

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

  • inline

Constructor 1 creates CoreSaleKeyed object with the amount.

Parameters

  • amount
  • of a transaction to be processed.

CoreSaleKeyed() [2/2]

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

    • String
    • orderId

    • )

  • inline

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

Parameters

  • amount
  • of a transaction to be processed.

  • orderId
  • holds order ID.

Member Function Documentation

getAvsAddress1()

    • String com.payments.core.CoreSaleKeyed.getAvsAddress1
    • (
    • )

  • inline

getAvsPostCode()

    • String com.payments.core.CoreSaleKeyed.getAvsPostCode
    • (
    • )

  • inline

getCardCvv()

    • String com.payments.core.CoreSaleKeyed.getCardCvv
    • (
    • )

  • inline

The String instance represents card Cvv 3 digit security code number found on the back of credit/debit card.

Returns

cardCvv which holds CVV of a card

getCardNumber()

    • String com.payments.core.CoreSaleKeyed.getCardNumber
    • (
    • )

  • inline

The String instance represents 16 digit card number found on the front of each credit/debit card.

Returns

cardNumber - card number

getEncryptedData()

    • String com.payments.core.CoreSaleKeyed.getEncryptedData
    • (
    • )

  • inline

The String instance representing encrypted PAN.

Returns

encryptedData - manual card entry

getKsn()

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

  • inline

The String instance representing ksn.

Returns

ksn - manual card entry

setAvsAddress1()

    • void com.payments.core.CoreSaleKeyed.setAvsAddress1
    • (
    • String
    • avsAddress1
    • )

  • inline

setAvsPostCode()

    • void com.payments.core.CoreSaleKeyed.setAvsPostCode
    • (
    • String
    • avsPostCode
    • )

  • inline

setCardCvv()

    • void com.payments.core.CoreSaleKeyed.setCardCvv
    • (
    • String
    • cardCvv
    • )

  • inline

Sets the value of cardCvv property.

Parameters

  • cardCvv
  • CVV of the card

setCardNumber()

    • void com.payments.core.CoreSaleKeyed.setCardNumber
    • (
    • String
    • cardNumber
    • )

  • inline

Sets the value of cardNumber property.

Parameters

  • cardNumber
  • - card number

setEncryptedData()

    • void com.payments.core.CoreSaleKeyed.setEncryptedData
    • (
    • String
    • encryptedData
    • )

  • inline

Sets the value of encryptedData property.

Parameters

  • encryptedData
  • - manual card entry

setKsn()

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

  • inline

Sets the value of ksn property.

Parameters

  • ksn
  • - manual card entry