Class coresaletrack

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

Inheritance diagram for CorePayments.CoreSaleTrack:

CorePayments.CoreSaleTrackContactless

Public Member Functions

CoreSaleTrack ()
Initializes a new instance of the CoreSaleTrack class.More…
CoreSaleTrack (decimal amount)
Initializes a new instance of the CoreSaleTrack class.More…
CoreSaleTrack (decimal amount, string orderId)
Initializes a new instance of the CoreSaleTrack class.More…
void setCardTypeBasedOnBin (string maskedPan)
Sets the card type based on bin.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 encryptedTrackData [get, set]
Gets or sets the encrypted track data.More…
string ksn [get, set]
Gets or sets the KSN.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 track sale request object which is send to the server to be processed.

See also

CorePayments.CoreSale

Decimal amount = Decimal.Parse(amountTextbox.Text);
CoreSaleTrack saleRequest = new CoreSaleTrack(Math.Round(amount, 2, MidpointRounding.ToEven));
saleRequest.cardType = "VISA";
saleRequest.cardHolderName = "Test User";
saleRequest.encryptedTrackData = "88A7B257E85532501B5406BD95D31C89C5536F49175164DD57F625D9AD2CC5F594F17C12F6A9E886E1744405D68F01043BE2902AEBAF9586";
saleRequest.ksn = "0123456789ABCDE000B8";
Terminal.Instance.ProcessSale(saleRequest);

Constructor & Destructor Documentation

CoreSaleTrack() [1/3]

    • CorePayments.CoreSaleTrack.CoreSaleTrack
    • (
    • )

  • inline

Initializes a new instance of the CoreSaleTrack class.

CoreSaleTrack() [2/3]

    • CorePayments.CoreSaleTrack.CoreSaleTrack
    • (
    • decimal
    • amount
    • )

  • inline

Initializes a new instance of the CoreSaleTrack class.

Parameters

  • amount
  • The amount.

CoreSaleTrack() [3/3]

    • CorePayments.CoreSaleTrack.CoreSaleTrack
    • (
    • decimal
    • amount,

    • string
    • orderId

    • )

  • inline

Initializes a new instance of the CoreSaleTrack class.

Parameters

  • amount
  • The amount.

  • orderId
  • The order identifier.

Member Function Documentation

setCardTypeBasedOnBin()

    • void CorePayments.CoreSaleTrack.setCardTypeBasedOnBin
    • (
    • string
    • maskedPan
    • )

  • inline

Sets the card type based on bin.

Parameters

  • maskedPan
  • The masked pan.

Property Documentation

encryptedTrackData

    • string CorePayments.CoreSaleTrack.encryptedTrackData

  • getset

Gets or sets the encrypted track data.

The encrypted track data.

ksn

    • string CorePayments.CoreSaleTrack.ksn

  • getset

Gets or sets the KSN.

The KSN.