Class coresaleemv

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

Inheritance diagram for CorePayments.CoreSaleEmv:

CorePayments.CoreSale

Public Member Functions

CoreSaleEmv ()
Initializes a new instance of the CoreSaleEmv class.More…
CoreSaleEmv (decimal amount)
Initializes a new instance of the CoreSaleEmv class.More…
CoreSaleEmv (decimal amount, string orderId)
Initializes a new instance of the CoreSaleEmv class.More…
void setCardTypeBasedOnAid (string aid)
Sets the card type based on aid.More…
Public Member Functions inherited from CorePayments.CoreSale
CoreSale ()
Initializes a new instance of the CoreSale class.More…
CoreSale (decimal amount)
Initializes a new instance of the CoreSale class.More…
CoreSale (decimal amount, string orderId)
Initializes a new instance of the CoreSale class.More…
void AddTipWithAmount (decimal tipAmount)
Adds the tip with amount.More…

Properties

string ksn [get, set]
Gets or sets the KSN (key serial number).More…
string tlvString [get, set]
Gets or sets the TLV string.More…
Properties inherited from CorePayments.CoreSale
decimal amount [get, set]
Gets or sets the amount.More…
string cardType [get, set]
Gets or sets the type of the card.More…
string orderId [get, set]
Gets or sets the order identifier.More…
CoreTip tip [get, set]
Gets or sets the tip.More…
CoreTax tax [get, set]
Gets or sets the tax.More…
bool autoReady [get, set]
Gets or sets a value indicating whether the transaction is set automatically to READY in the open batch.More…
CoreSignature signature [get, set]
Gets or sets the signature.More…
string deviceType [get, set]
Gets or sets the type of the device.More…
bool fallback [get, set]
Gets or sets a value indicating whether to set the fallback.More…
string cardHolderName [get, set]
Gets or sets the name of the card holder.More…
string serial [get, set]
Gets or sets the serial.More…
int firstDigitOfPan [get, set]
Gets or sets the first digit of pan.More…
CoreEmvType emvType [get, set]
Gets or sets the type of the transaction.More…
SignatureCollection signatureCollection [get, set]
Gets or sets the signature collection.More…
CoreTransactionInputMethod coreTransactionInputMethod [get, set]
Gets or sets the core transaction mode.Start the transaction in defferent mode (insert, swipe …) More…
TerminalCategory terminalCategory [get, set]
Gets or sets the terminal category.More…
SaleRequestType requestType [get, set]
Gets or sets the type of the request.More…
int cardRequestTimeout [get, set]
Gets or sets the card request timeout.More…
CoreSecureCard coreSecureCard [get, set]
Gets or sets the secure card.More…
bool isDelayedAuthEnabled [get, set]
Gets a value indicating whether the sale is delayed auth.More…
bool isSignatureRequired [get, set]
Gets a value indicating whether the sale requires signature .More…
bool isGiftCard [get, set]
Gets a value indicating whether the sale is gift card.More…
string dateTime [get, set]
Gets or sets the date time.More…
string deviceFirmwareVersion [get, set]
Gets or sets the device firmware version.More…
TransactionType transactionType [get, set]
Gets or sets the transaction type.More…
FallbackReason fallbackReason [get, set]
Gets or sets the fallback reason.More…

Detailed Description

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

See also

CorePayments.CoreSale

Decimal amount = Decimal.Parse(amountTextbox.Text);
CoreSaleEmv sale = new CoreSaleEmv(Math.Round(amount, 2, MidpointRounding.ToEven));
sale.cardType = "VISA";
Dictionary<string, string> emvTags = new Dictionary<string, string>();
emvTags.Add("57", "D1480CFFECE1036F5BE047B0A788F81C0330DBBF99DBDAA9660F6F4338D439C3");
emvTags.Add("82", "E35E6B2BE72D447CB01D26D2AE6F7D13");
emvTags.Add("95", "A8DE9FC48210D6F6F5A8959CBBBADE499D31A54F490E4DAA");
emvTags.Add("9A", "A2C0C5356A76CDBF1C9E1F86E7A2B9233D5669D542448673");
emvTags.Add("9B", "0E8D39C23E24D3B0152F4C7F12E75ED5");
emvTags.Add("9C", "6763A26EE0DBDDE98BA5FB6FC6ACFDBC");
emvTags.Add("5F20", "ECDC2C46DB83BD33DACBA58FFF65409DDF1C91B9B6954D9394948FBB42825FBA");
emvTags.Add("5F34", "2724245FCC1A03FD4BD1E1F68EBFDA07");
emvTags.Add("9F06", "748B993BEFA491F1A13916746A8AAA84F9D4427CF0A38E3C");
emvTags.Add("9F10", "7E3E764D10ADC6A85A9EB6DD6A7B30EA545C5F17CE67C95A42BBA9D600FD52A2FAA77B15840F5451");
emvTags.Add("9F26", "B8DE5CD43233675F3AD9A667AD3AC4E34A9EF7B4F0DB44D2");
emvTags.Add("9F27", "1000DE7DEF34E238E4AB20DFD99F648D");
emvTags.Add("9F33", "7C0DBBD216BF9723D6242C8DAF0E9E32F7FDF16BFDA81E20");
emvTags.Add("9F34", "A4B903F78C093A88339EE6D352177BB9D1E1D01767CB0A73");
emvTags.Add("9F35", "B6E58E4DD1C6C99E232F2A7E83E96764");
emvTags.Add("9F36", "DCD78468389F95D1F99AAC8D2D948090F3E14A49754C31F2");
emvTags.Add("9F37", "AB6275DD6F2B66CC4407FAFE32C66E79944CC3E9FD07E914");
emvTags.Add("9F42", "0E687C636F89C34D5FAE5D3DC56E36338AA5A2C17EBB7D25");
sale.ksn = "0123456789ABCDE000BB";
sale.emvTags = emvTags;
Terminal.Instance.ProcessSale(sale);

Constructor & Destructor Documentation

CoreSaleEmv() [1/3]

    • CorePayments.CoreSaleEmv.CoreSaleEmv
    • (
    • )

  • inline

Initializes a new instance of the CoreSaleEmv class.

CoreSaleEmv() [2/3]

    • CorePayments.CoreSaleEmv.CoreSaleEmv
    • (
    • decimal
    • amount
    • )

  • inline

Initializes a new instance of the CoreSaleEmv class.

Parameters

  • amount
  • The amount.

CoreSaleEmv() [3/3]

    • CorePayments.CoreSaleEmv.CoreSaleEmv
    • (
    • decimal
    • amount,

    • string
    • orderId

    • )

  • inline

Initializes a new instance of the CoreSaleEmv class.

Parameters

  • amount
  • The amount.

  • orderId
  • The order identifier.

Member Function Documentation

setCardTypeBasedOnAid()

    • void CorePayments.CoreSaleEmv.setCardTypeBasedOnAid
    • (
    • string
    • aid
    • )

  • inline

Sets the card type based on aid.

Parameters

  • aid
  • The aid.

Property Documentation

ksn

    • string CorePayments.CoreSaleEmv.ksn

  • getset

Gets or sets the KSN (key serial number).

The KSN.

tlvString

    • string CorePayments.CoreSaleEmv.tlvString

  • getset

Gets or sets the TLV string.

The TLV string.