Class terminal

This class represents public API which allows integrator to perform actions.More…

Inheritance diagram for CorePayments.Terminal:

CorePayments.CoreTerminal

Classes

interface ITerminalHealthListener

Public Member Functions

void Initialize (CoreAPIListener listener)
void Initialize (Assembly assembly)
Terminal (CoreAPIListener listener)
Initializes a new instance of the Terminal class.More…
void RegisterLogListener (CoreAPILogsListener logListener)
Sets the log message listener.More…
void SetLogLevel (LogLevel logLevel)
void RegisterCoreAPIDeviceListener (CoreAPIDeviceListener listener)
Registers CoreAPIDeviceListener listener.More…
void UnRegisterCoreAPIDeviceListener (CoreAPIDeviceListener listener)
Unregisters CoreAPIDeviceListener listener.More…
void RegisterCoreAPIReportingListener (CoreAPIReportingListener listener)
Registers CoreAPIReportingListener listener.More…
void UnRegisterCoreAPIReportingListener (CoreAPIReportingListener listener)
Unregisters CoreAPIReportingListener listener.More…
void RegisterCoreAPISaleListener (CoreAPISaleListener listener)
Registers CoreAPISaleListener listener.More…
void UnRegisterCoreAPISaleListener (CoreAPISaleListener listener)
Unregisters CoreAPISaleListener listener.More…
void RegisterCoreAPISecureCardListener (CoreAPISecureCardListener listener)
Registers CoreAPISecureCardListener listener.More…
void UnRegisterCoreAPISecureCardListener (CoreAPISecureCardListener listener)
Unregisters CoreAPISecureCardListener listener.More…
void RegisterCoreAPISettingsListener (CoreAPISettingsListener listener)
Registers CoreAPISettingsListener listener.More…
void UnRegisterCoreAPISettingsListener (CoreAPISettingsListener listener)
Unregisters CoreAPISettingsListener listener.More…
void RegisterCoreAPIRefundListener (CoreAPIRefundListener listener)
Registers CoreAPIRefundListener listener.More…
void UnRegisterCoreAPIRefundListener (CoreAPIRefundListener listener)
Unregisters CoreAPIRefundListener listener.More…
void RegisterCoreAPIReversalListener (CoreAPIReversalListener listener)
Registers CoreAPIReversalListener listener.More…
void UnRegisterCoreAPIReversalListener (CoreAPIReversalListener listener)
Unregisters CoreAPIReversalListener listener.More…
void RegisterCoreAPIUpdateListener (CoreAPIUpdateListener listener)
Registers CoreAPIUpdateListener listener.More…
void UnRegisterCoreAPIUpdateListener (CoreAPIUpdateListener listener)
Unregisters CoreAPIUpdateListener listener.More…
void RegisterCoreAPIMessageListener (CoreAPIMessageListener listener)
Registers CoreAPIMessageListener listener.More…
void UnRegisterCoreAPIMessageListener (CoreAPIMessageListener listener)
Unregisters CoreAPIMessageListener listener.More…
void InitWithConfiguration ()
Initializes the configuration.The configuration will be returned in OnSettingsRetrieved callback method.Use this method only when terminal ID and secret are stored in payconfig file More…
void InitWithConfiguration (string terminalId, string secret)
Initializes the configuration.The configuration will be returned in OnSettingsRetrieved callback method.More…
bool InitWithConfiguration (string terminalId, string secret, CoreSettings settings)
Initializes the configuration.This method should be used when terminal is offline.More…
void InitDevice (DeviceEnum device, DeviceConnectionType deviceConnectionType, Dictionary< string, object > data)
Initializes the device.More…
void DisconnectDevice ()
Disconnects currently connected device.More…
void RetrieveSettings ()
Retrieves the terminal settings.The settings will be returned in OnSettingsRetrieved callback method.More…
void ProcessSale (CoreSale request)
Processes the sale.More…
void ProcessRefund (CoreRefund request)
Processes the referenced refund.More…
void ProcessReversal (CoreReversal reversal)
Processes the reversal.More…
void ProcessUnreferencedRefund (CoreUnreferencedRefund request)
Processes the unreferenced refund.More…
void UpdateSettings (CoreTerminalUpdate terminal)
Updates the terminal settings.More…
void GetTransactions (int page, CoreTransactionFilter filter)
Gets the transactions based on the filter.Requires token.More…
void GetTransactions ()
Gets the transactions.Requires token.More…
void SubmitSignature (CoreSignature coreSignature)
Submits the signature after it has been drawn.More…
void RequestSecuredUrl (string schema)
Requests the secured URL which is used to login into the system and get the token from the URL.More…
void UpdateTransaction (CoreUpdate update)
Updates the transaction to send the receipt by email or a phone number.More…
void CancelTransaction ()
Cancels the transaction.More…
void retrieveSecureCard (string merchantReference)
Retrieve secure card More…
void registerSecureCard (CoreSecureCard coreSecureCard)
Register secure card More…
void editSecureCard (CoreSecureCard coreSecureCard)
Edit secure card More…
void deleteSecureCard (CoreSecureCard coreSecureCard)
Delete secure card More…
void CloseTransactionBatch ()
Used to send a request to the host to close the current transactions batch.More…
void SendDeviceNotSupportedError (Dictionary< string, object > map)
TerminalConnector callback used internally by plugins.More…
void SetPluginCallBack (PluginListener pluginCallBack)
TerminalConnector callback used internally by plugins.More…
void SendDeviceInfo (Dictionary< string, string > deviceInfo)
TerminalConnector callback used internally by plugins.More…
void SetSettings (CoreSettings settings)
TerminalConnector callback used internally by plugins.More…
void SendSaleOnline (CoreSale coreSale)
TerminalConnector callback used internally by plugins.More…
void SendRefundOnline (CoreUnreferencedRefund refund)
TerminalConnector callback used internally by plugins.More…
void OnCompleteReadSecureCard (CoreSecureCard coreSecureCard)
TerminalConnector callback used internally by plugins.More…
void SendDeviceError (object message)
TerminalConnector callback used internally by plugins.More…
void SendUserMessages (object message)
TerminalConnector callback used internally by plugins.More…
void SendDeviceDisconnected (DeviceEnum device)
TerminalConnector callback used internally by plugins.More…
void SendOnRequestAmount (CoreSale coreSale)
void SendDeviceConnected (Dictionary< string, object > data)
TerminalConnector callback used internally by plugins.More…
void SendSignatureRequired (CoreSale coreSale)
TerminalConnector callback used internally by plugins.More…
void SendBillingAddressRequired (CoreSaleKeyed coreSale)
TerminalConnector callback used internally by plugins.More…
void SendUpdateRequest (Dictionary< string, object > data)
TerminalConnector callback used internally by plugins.More…
void SendSelectApplicationRequired (List< string > applications)
TerminalConnector callback used internally by plugins.More…
void SendLogLevelError (object error)
void SendConnectionError (object error)
TerminalConnector callback used internally by plugins.More…
void SendAutoConfigProgressUpdate (string progress)
TerminalConnector callback used internally by plugins.More…
void SendTransactionFinished (CoreSaleResponse transaction)
TerminalConnector callback used internally by plugins.More…
void SendRefundTransactionFinished (CoreRefundResponse transaction)
TerminalConnector callback used internally by plugins.More…
void SendTransactionReversal (CoreReversal reversal)
TerminalConnector callback used internally by plugins.More…
void Log (string message, LogLevel logLevel)
TerminalConnector callback used internally by plugins.More…
bool setConnectionTimeout (int seconds)
void SendSelectBluetoothRequired (List< string > pairedDevices)
TerminalConnector callback used internally by plugins.More…
void ReleaseResources ()
Release resources.More…
void SubmitApplication (int app)
Submits the application after OnSelectApplication has been called.More…
void StartAutoConfig ()
Start auto configuration for Walker device.More…
List< string > ListSupportedDevices ()
Lists the supported devices.More…
void SetDebug (bool debug)
Sets the debug mode of the SDK.More…
void SetMode (CoreMode mode)
Switch between LIVE, TEST and DEV mode.More…
CoreMode GetMode ()
Gets the SDK mode.More…
CoreTerminal GetCoreTerminal ()
Gets the core terminal.More…
void GetDeviceInfo ()
Gets the device information.Device info will be returned in OnDeviceInfoReturned callback method.More…
string GetSdkVersion ()
Gets the SDK version.More…
CoreSettings GetSettings ()
Gets the terminal settings.More…
PluginListener GetPluginCallBack ()
TerminalConnector callback used internally by plugins.More…
DeviceEnum GetDevice ()

Gets the currently connected device.More…
void SubmitBillingAddress (CoreSaleKeyed coreSale)
Submits the billing address after in response to OnBillingAddressRequired callback.More…
Currency GetCurrency ()
Gets the currency.More…
void CancelCurrentTransaction ()
Cancels the current transaction.More…
void RunOnSDKThread (Action action)
void SendGiftCardData (Dictionary< string, string > giftCarddata)
Boolean SetOfflineMode (Boolean offline)
Turns ON/OFF Terminal offline mode.More…
void SubmitAmount (CoreSale coreSale, bool amountConfirmation)
Submits the amount.More…
List< CoreTransactionInputMethod > ListSupportedInputMethods ()
bool IsPollingEnabled ()
bool IsDelayedAuthEnabled ()
decimal GetDelayedAuthInitialAmount ()
decimal GetPollingInitialAmount ()
void EnableDelayedAuth (decimal initialAmount)
Enables the delayed authentication.More…
void DisableDelayedAuth ()
Disables the delayed authentication.More…
void EnablePolling (decimal initialAmount)
Enables the poling.More…
void DisablePolling ()
Disables the poling.More…
Public Member Functions inherited from CorePayments.CoreTerminal
CoreTerminal (string terminalId, string secret, string url)
string GetTerminalUrl ()
string GetAuthorizationUrl ()
Boolean getOfflineMode ()
Checks if Terminal is on offline mode.More…
string GetPayconexReportingUrl ()
string GetPayconexSaleUrl ()

Protected Attributes

CoreSettings settings
Protected Attributes inherited from CorePayments.CoreTerminal
bool offlineMode
Gets or sets a value indicating whether terminal is on offline mode.More…

Properties

static Terminal Instance [get]
Properties inherited from CorePayments.CoreTerminal
string terminalId [get, set]
Gets or sets the terminal identifier.More…
string secret [get, set]
Gets or sets the secret.More…
Currency currency [get, set]
Gets or sets the currency.More…
string token [get, set]
Gets or sets the token.More…
string isvToken [get, set]
Gets or sets the isv token.More…
string terminalType [get, set]
Gets or sets the type of the terminal.More…
CoreSettings coreSettings [get, set]
Gets or sets the core settings.More…
string url [get, set]
Gets or sets the URL.More…
bool requiresTokenForRefunds [get, set]
Gets or sets a value indicating whether token is required for refunds.More…
bool requiresTokenForReporting [get, set]
Gets or sets a value indicating whether token is required for reporting.More…
bool requiresTokenForTerminalUpdate [get, set]
Gets or sets a value indicating whether [requires token for terminal update].More…
string deviceType [get, set]
Gets or sets the type of the device.More…

Detailed Description

This class represents public API which allows integrator to perform actions.

Constructor & Destructor Documentation

Terminal()

Initializes a new instance of the Terminal class.

Terminal terminal = new Terminal(this);

Parameters

  • listener
  • The listener.

Member Function Documentation

CancelCurrentTransaction()

    • void CorePayments.Terminal.CancelCurrentTransaction
    • (
    • )

  • inline

Cancels the current transaction.

Terminal.Instance.CancelCurrentTransaction();

CancelTransaction()

    • void CorePayments.Terminal.CancelTransaction
    • (
    • )

  • inline

Cancels the transaction.

Terminal.Instance.CancelTransaction();

CloseTransactionBatch()

    • void CorePayments.Terminal.CloseTransactionBatch
    • (
    • )

  • inline

Used to send a request to the host to close the current transactions batch.

Terminal.Instance.CloseTransactionBatch();

deleteSecureCard()

    • void CorePayments.Terminal.deleteSecureCard
    • (
    • CoreSecureCard
    • coreSecureCard
    • )

  • inline

Delete secure card

Parameters

  • coreSecureCard
  • The secure card to be deleted

CoreSecureCard coreSecureCard = new CoreSecureCard();
coreSecureCard.merchantReference = "M01";
Terminal.Instance.deleteSecureCard(coreSecureCard);

DisableDelayedAuth()

    • void CorePayments.Terminal.DisableDelayedAuth
    • (
    • )

  • inline

Disables the delayed authentication.

DisablePolling()

    • void CorePayments.Terminal.DisablePolling
    • (
    • )

  • inline

Disables the poling.

DisconnectDevice()

    • void CorePayments.Terminal.DisconnectDevice
    • (
    • )

  • inline

Disconnects currently connected device.

Terminal.Instance.DisconnectDevice();

editSecureCard()

    • void CorePayments.Terminal.editSecureCard
    • (
    • CoreSecureCard
    • coreSecureCard
    • )

  • inline

Edit secure card

Parameters

  • coreSecureCard
  • The secure card to be updated

CoreSecureCard coreSecureCard = new CoreSecureCard();
coreSecureCard.merchantReference = "M01";
Terminal.Instance.editSecureCard(coreSecureCard);

EnableDelayedAuth()

    • void CorePayments.Terminal.EnableDelayedAuth
    • (
    • decimal
    • initialAmount
    • )

  • inline

Enables the delayed authentication.

Parameters

  • initialAmount
  • The initial amount.

EnablePolling()

    • void CorePayments.Terminal.EnablePolling
    • (
    • decimal
    • initialAmount
    • )

  • inline

Enables the poling.

Parameters

  • initialAmount
  • The initial amount.

GetCoreTerminal()

  • inline

Gets the core terminal.

Returns

GetCurrency()

    • Currency CorePayments.Terminal.GetCurrency
    • (
    • )

  • inline

Gets the currency.

Returns

GetDelayedAuthInitialAmount()

    • decimal CorePayments.Terminal.GetDelayedAuthInitialAmount
    • (
    • )

  • inline

GetDevice()

  • inline


Gets the currently connected device.

Returns

GetDeviceInfo()

    • void CorePayments.Terminal.GetDeviceInfo
    • (
    • )

  • inline

Gets the device information.Device info will be returned in OnDeviceInfoReturned callback method.

Terminal.Instance.GetDeviceInfo();

GetMode()

    • CoreMode CorePayments.Terminal.GetMode
    • (
    • )

  • inline

Gets the SDK mode.

Returns

GetPluginCallBack()

    • PluginListener CorePayments.Terminal.GetPluginCallBack
    • (
    • )

  • inline

TerminalConnector callback used internally by plugins.

GetPollingInitialAmount()

    • decimal CorePayments.Terminal.GetPollingInitialAmount
    • (
    • )

  • inline

GetSdkVersion()

    • string CorePayments.Terminal.GetSdkVersion
    • (
    • )

  • inline

Gets the SDK version.

Returns

GetSettings()

Gets the terminal settings.

Returns

GetTransactions() [1/2]

Gets the transactions based on the filter.Requires token.

Parameters

  • page
  • The page to get.

  • filter
  • The filter.

CoreTransactionFilter filter = new CoreTransactionFilter();
filter.state = CoreTransactionState.ALL;
filter.startDate = "31-12-2015:12:12:30:123";
filter.endDate = "31-12-2016:12:12:30:123";
filter.resultsPerPage = 50;
Terminal.Instance.GetTransactions(1, filter);

GetTransactions() [2/2]

    • void CorePayments.Terminal.GetTransactions
    • (
    • )

  • inline

Gets the transactions.Requires token.

Terminal.Instance.GetTransactions();

InitDevice()

Initializes the device.

Terminal.Instance.InitDevice(DeviceEnum.AUGUSTA, null, null);

Parameters

  • device
  • The device used for processing the transaction.

  • deviceConnectionType
  • The connection type of the device.

  • data
  • The data dictionary contains portName (COM1,COM2) for Ingenico devices.

Initialize() [1/2]

  • inline

Initialize() [2/2]

    • void CorePayments.Terminal.Initialize
    • (
    • Assembly
    • assembly
    • )

  • inline

InitWithConfiguration() [1/3]

    • void CorePayments.Terminal.InitWithConfiguration
    • (
    • )

  • inline

Initializes the configuration.The configuration will be returned in OnSettingsRetrieved callback method.Use this method only when terminal ID and secret are stored in payconfig file

InitWithConfiguration() [2/3]

    • void CorePayments.Terminal.InitWithConfiguration
    • (
    • string
    • terminalId,

    • string
    • secret

    • )

  • inline

Initializes the configuration.The configuration will be returned in OnSettingsRetrieved callback method.

Terminal.Instance.InitWithConfiguration("1007","secret");

Parameters

  • terminalId
  • The terminal identifier.

  • secret
  • The secret password.

InitWithConfiguration() [3/3]

    • bool CorePayments.Terminal.InitWithConfiguration
    • (
    • string
    • terminalId,

    • string
    • secret,

    • )

  • inline

Initializes the configuration.This method should be used when terminal is offline.

Terminal.Instance.InitWithConfiguration(settings);

Parameters

  • terminalId
  • The terminal identifier.

  • secret
  • The secret password.

  • settings
  • Valid settings retrieved using initWithConfigurationMethod

Returns

true if successfuly initialized.

IsDelayedAuthEnabled()

    • bool CorePayments.Terminal.IsDelayedAuthEnabled
    • (
    • )

  • inline

IsPollingEnabled()

    • bool CorePayments.Terminal.IsPollingEnabled
    • (
    • )

  • inline

ListSupportedDevices()

    • List<string> CorePayments.Terminal.ListSupportedDevices
    • (
    • )

  • inline

Lists the supported devices.

Returns

List<string> devices = Terminal.Instance.ListSupportedDevices();

ListSupportedInputMethods()

Log()

    • void CorePayments.Terminal.Log
    • (
    • string
    • message,

    • )

  • inline

TerminalConnector callback used internally by plugins.

OnCompleteReadSecureCard()

    • void CorePayments.Terminal.OnCompleteReadSecureCard
    • (
    • CoreSecureCard
    • coreSecureCard
    • )

  • inline

TerminalConnector callback used internally by plugins.

ProcessRefund()

    • void CorePayments.Terminal.ProcessRefund
    • (
    • CoreRefund
    • request
    • )

  • inline

Processes the referenced refund.

Parameters

  • request
  • The request to process.

CoreRefund refundRequest = new CoreRefund(Math.Round(amount, 2, MidpointRounding.ToEven));
refundRequest.uniqueRef = uniqueRefFromLastTransaction;
refundRequest.reason = "reason";
Terminal.Instance.ProcessRefund(refundRequest);

ProcessReversal()

    • void CorePayments.Terminal.ProcessReversal
    • (
    • CoreReversal
    • reversal
    • )

  • inline

Processes the reversal.

Parameters

  • reversal
  • The reversal to process.

CoreReversal reversal = new CoreReversal("NOMAD", uniqueRefFromLastTransaction);
Terminal.Instance.ProcessReversal(reversal);

ProcessSale()

    • void CorePayments.Terminal.ProcessSale
    • (
    • CoreSale
    • request
    • )

  • inline

Processes the sale.

Parameters

  • request
  • The request to be processed.

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);

ProcessUnreferencedRefund()

Processes the unreferenced refund.

Parameters

  • request
  • The request to process.

CoreUnreferencedRefund refundRequest = new CoreUnreferencedRefund(Math.Round(amount, 2, MidpointRounding.ToEven));
refundRequest.cardHolderName = "Test User";
refundRequest.cardNumber = "4111111111111111";
refundRequest.cardCvv = "123";
refundRequest.cardType = "VISA";
refundRequest.expiryDate = "1216";
refundRequest.reason = "reason";
Terminal.Instance.ProcessUnreferencedRefund(refundRequest);

RegisterCoreAPIDeviceListener()

Registers CoreAPIDeviceListener listener.

RegisterCoreAPIMessageListener()

Registers CoreAPIMessageListener listener.

RegisterCoreAPIRefundListener()

Registers CoreAPIRefundListener listener.

RegisterCoreAPIReportingListener()

Registers CoreAPIReportingListener listener.

RegisterCoreAPIReversalListener()

Registers CoreAPIReversalListener listener.

RegisterCoreAPISaleListener()

  • inline

Registers CoreAPISaleListener listener.

RegisterCoreAPISecureCardListener()

Registers CoreAPISecureCardListener listener.

RegisterCoreAPISettingsListener()

Registers CoreAPISettingsListener listener.

RegisterCoreAPIUpdateListener()

Registers CoreAPIUpdateListener listener.

RegisterLogListener()

Sets the log message listener.

Parameters

  • logMessageListener
  • The log message listener.

registerSecureCard()

    • void CorePayments.Terminal.registerSecureCard
    • (
    • CoreSecureCard
    • coreSecureCard
    • )

  • inline

Register secure card

Parameters

  • coreSecureCard
  • The secure card to be registered

CoreSecureCard coreSecureCard = new CoreSecureCard();
coreSecureCard.merchantReference = "M01";
Terminal.Instance.registerSecureCard(coreSecureCard);

ReleaseResources()

    • void CorePayments.Terminal.ReleaseResources
    • (
    • )

  • inline

Release resources.

Terminal.Instance.ReleaseResources();

RequestSecuredUrl()

    • void CorePayments.Terminal.RequestSecuredUrl
    • (
    • string
    • schema
    • )

  • inline

Requests the secured URL which is used to login into the system and get the token from the URL.

Parameters

  • schema
  • The schema used for to lauch the app back from the browser after succesfull login.

Terminal.Instance.RequestSecuredUrl("worldnet://com.worldnet.login");

retrieveSecureCard()

    • void CorePayments.Terminal.retrieveSecureCard
    • (
    • string
    • merchantReference
    • )

  • inline

Retrieve secure card

Parameters

  • merchantReference
  • The merchant reference for the secure card to be retrieved

Terminal.Instance.retrieveSecureCard("M01");

RetrieveSettings()

    • void CorePayments.Terminal.RetrieveSettings
    • (
    • )

  • inline

Retrieves the terminal settings.The settings will be returned in OnSettingsRetrieved callback method.

Terminal.Instance.RetrieveSettings();

RunOnSDKThread()

    • void CorePayments.Terminal.RunOnSDKThread
    • (
    • Action
    • action
    • )

  • inline

SendAutoConfigProgressUpdate()

    • void CorePayments.Terminal.SendAutoConfigProgressUpdate
    • (
    • string
    • progress
    • )

  • inline

TerminalConnector callback used internally by plugins.

SendBillingAddressRequired()

    • void CorePayments.Terminal.SendBillingAddressRequired
    • (
    • CoreSaleKeyed
    • coreSale
    • )

  • inline

TerminalConnector callback used internally by plugins.

SendConnectionError()

    • void CorePayments.Terminal.SendConnectionError
    • (
    • object
    • error
    • )

  • inline

TerminalConnector callback used internally by plugins.

SendDeviceConnected()

    • void CorePayments.Terminal.SendDeviceConnected
    • (
    • Dictionary< string, object >
    • data
    • )

  • inline

TerminalConnector callback used internally by plugins.

SendDeviceDisconnected()

    • void CorePayments.Terminal.SendDeviceDisconnected
    • (
    • DeviceEnum
    • device
    • )

  • inline

TerminalConnector callback used internally by plugins.

SendDeviceError()

    • void CorePayments.Terminal.SendDeviceError
    • (
    • object
    • message
    • )

  • inline

TerminalConnector callback used internally by plugins.

SendDeviceInfo()

    • void CorePayments.Terminal.SendDeviceInfo
    • (
    • Dictionary< string, string >
    • deviceInfo
    • )

  • inline

TerminalConnector callback used internally by plugins.

SendDeviceNotSupportedError()

    • void CorePayments.Terminal.SendDeviceNotSupportedError
    • (
    • Dictionary< string, object >
    • map
    • )

  • inline

TerminalConnector callback used internally by plugins.

SendGiftCardData()

    • void CorePayments.Terminal.SendGiftCardData
    • (
    • Dictionary< string, string >
    • giftCarddata
    • )

  • inline

SendLogLevelError()

    • void CorePayments.Terminal.SendLogLevelError
    • (
    • object
    • error
    • )

  • inline

SendOnRequestAmount()

    • void CorePayments.Terminal.SendOnRequestAmount
    • (
    • CoreSale
    • coreSale
    • )

  • inline

SendRefundOnline()

TerminalConnector callback used internally by plugins.

SendRefundTransactionFinished()

    • void CorePayments.Terminal.SendRefundTransactionFinished
    • (
    • CoreRefundResponse
    • transaction
    • )

  • inline

TerminalConnector callback used internally by plugins.

SendSaleOnline()

    • void CorePayments.Terminal.SendSaleOnline
    • (
    • CoreSale
    • coreSale
    • )

  • inline

TerminalConnector callback used internally by plugins.

SendSelectApplicationRequired()

    • void CorePayments.Terminal.SendSelectApplicationRequired
    • (
    • List< string >
    • applications
    • )

  • inline

TerminalConnector callback used internally by plugins.

SendSelectBluetoothRequired()

    • void CorePayments.Terminal.SendSelectBluetoothRequired
    • (
    • List< string >
    • pairedDevices
    • )

  • inline

TerminalConnector callback used internally by plugins.

SendSignatureRequired()

    • void CorePayments.Terminal.SendSignatureRequired
    • (
    • CoreSale
    • coreSale
    • )

  • inline

TerminalConnector callback used internally by plugins.

SendTransactionFinished()

    • void CorePayments.Terminal.SendTransactionFinished
    • (
    • CoreSaleResponse
    • transaction
    • )

  • inline

TerminalConnector callback used internally by plugins.

SendTransactionReversal()

    • void CorePayments.Terminal.SendTransactionReversal
    • (
    • CoreReversal
    • reversal
    • )

  • inline

TerminalConnector callback used internally by plugins.

SendUpdateRequest()

    • void CorePayments.Terminal.SendUpdateRequest
    • (
    • Dictionary< string, object >
    • data
    • )

  • inline

TerminalConnector callback used internally by plugins.

SendUserMessages()

    • void CorePayments.Terminal.SendUserMessages
    • (
    • object
    • message
    • )

  • inline

TerminalConnector callback used internally by plugins.

setConnectionTimeout()

    • bool CorePayments.Terminal.setConnectionTimeout
    • (
    • int
    • seconds
    • )

  • inline

SetDebug()

    • void CorePayments.Terminal.SetDebug
    • (
    • bool
    • debug
    • )

  • inline

Sets the debug mode of the SDK.

Parameters

  • debug
  • if set to true [debug].

Terminal.Instance.SetDebug(true);

SetLogLevel()

    • void CorePayments.Terminal.SetLogLevel
    • (
    • LogLevel
    • logLevel
    • )

  • inline

SetMode()

    • void CorePayments.Terminal.SetMode
    • (
    • CoreMode
    • mode
    • )

  • inline

Switch between LIVE, TEST and DEV mode.

Parameters

  • mode
  • The mode to use.

Terminal.Instance.SetMode(CoreMode.TEST);

SetOfflineMode()

    • Boolean CorePayments.Terminal.SetOfflineMode
    • (
    • Boolean
    • offline
    • )

  • inline

Turns ON/OFF Terminal offline mode.

SetPluginCallBack()

    • void CorePayments.Terminal.SetPluginCallBack
    • (
    • PluginListener
    • pluginCallBack
    • )

  • inline

TerminalConnector callback used internally by plugins.

SetSettings()

    • void CorePayments.Terminal.SetSettings
    • (
    • CoreSettings
    • settings
    • )

  • inline

TerminalConnector callback used internally by plugins.

StartAutoConfig()

    • void CorePayments.Terminal.StartAutoConfig
    • (
    • )

  • inline

Start auto configuration for Walker device.

Terminal.Instance.StartAutoConfig();

SubmitAmount()

    • void CorePayments.Terminal.SubmitAmount
    • (
    • CoreSale
    • coreSale,

    • bool
    • amountConfirmation

    • )

  • inline

Submits the amount.

Parameters

  • coreSale
  • The core sale.

  • amountConfirmation
  • if set to true [amount confirmation].

SubmitApplication()

    • void CorePayments.Terminal.SubmitApplication
    • (
    • int
    • app
    • )

  • inline

Submits the application after OnSelectApplication has been called.

Parameters

  • app
  • The application.

Terminal.Instance.SubmitApplication(0);

SubmitBillingAddress()

    • void CorePayments.Terminal.SubmitBillingAddress
    • (
    • CoreSaleKeyed
    • coreSale
    • )

  • inline

Submits the billing address after in response to OnBillingAddressRequired callback.

Parameters

  • coreSale
  • The coreSale object used to store billing address for keyed transactions.

 

SubmitSignature()

    • void CorePayments.Terminal.SubmitSignature
    • (
    • CoreSignature
    • coreSignature
    • )

  • inline

Submits the signature after it has been drawn.

Parameters

  • coreSignature
  • The core signature object used to gather signature points.

// set all points on CoreSignature object using UpTouch, StartTouch, MoveTouch methods
Terminal.Instance.SubmitSignature(coreSignature);

UnRegisterCoreAPIDeviceListener()

Unregisters CoreAPIDeviceListener listener.

UnRegisterCoreAPIMessageListener()

Unregisters CoreAPIMessageListener listener.

UnRegisterCoreAPIRefundListener()

Unregisters CoreAPIRefundListener listener.

UnRegisterCoreAPIReportingListener()

Unregisters CoreAPIReportingListener listener.

UnRegisterCoreAPIReversalListener()

Unregisters CoreAPIReversalListener listener.

UnRegisterCoreAPISaleListener()

  • inline

Unregisters CoreAPISaleListener listener.

UnRegisterCoreAPISecureCardListener()

Unregisters CoreAPISecureCardListener listener.

UnRegisterCoreAPISettingsListener()

Unregisters CoreAPISettingsListener listener.

UnRegisterCoreAPIUpdateListener()

Unregisters CoreAPIUpdateListener listener.

UpdateSettings()

Updates the terminal settings.

Parameters

  • terminal
  • The terminal settings to update.

CoreTerminalUpdate terminalUpdate = new CoreTerminalUpdate();
CoreTax tax = new CoreTax();
tax.percentage = new Decimal(10.32);
tax.name = "Windows TEST 1";
CoreTip tip = new CoreTip();
tip.percentage = new Decimal(14.32);
tip.tipType = TipType.PERCENTAGE;
List<CoreSetting> create = new List<CoreSetting>();
create.Add(tax);
create.Add(tip);
terminalUpdate.settingCreate = create;
Terminal.Instance.UpdateSettings(terminalUpdate);

UpdateTransaction()

    • void CorePayments.Terminal.UpdateTransaction
    • (
    • CoreUpdate
    • update
    • )

  • inline

Updates the transaction to send the receipt by email or a phone number.

Parameters

  • update
  • The update object containing email and phone number used to send the receipt.

CoreUpdate sendReceipt = new CoreUpdate(uniqueRefFromLastTransaction, "test@gmail.com", "0123456789");
Terminal.Instance.UpdateTransaction(sendReceipt);

Member Data Documentation

settings

Property Documentation

Instance

    • Terminal CorePayments.Terminal.Instance

  • staticget