Class wtpsterminal

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

#import <Core.h>

Inheritance diagram for WTPSTerminal:

Instance Methods

(void) - init:
Constructor to Initialize listener.More…
(void) - initialize
Constructor to Initialize Terminal.More…
(void) - initWithConfiguration
Initialize listener and store configuration in memory.Use this method only when terimnal ID and secret are stored in payconfig file.More…
(void) - initWithConfiguration:withSecret:
Initialize listener and store configuration in memory.More…
(void) - initWithConfiguration:withSecret:withTerminalType:
Initialize listener and store configuration in memory.More…
(void) - initWithConfiguration:withSecret:andUrl:
Initialize listener and store configuration in memory.More…
(void) - initWithCustomUrlConfiguration:withSecret:andUrl:
Initialize listener and store configuration in memory.More…
(BOOL) - initWithConfiguration:withSecret:withSettings:
Used only when the terminal is offline.More…
(void) - processSale:
Process the sale object.More…
(void) - processRefund:
Process the referenced refund object.More…
(void) - processUnreferencedRefund:
Process the unreferenced refund object.More…
(void) - updateSettings:
Update tip and tax settings.More…
(void) - requestSecuredUrl:
Get back the Secured URL which is used to get the token after signing in.More…
(void) - getTransactions
Get the transactions from the server.Requires token.More…
(void) - getTransactions:usingFilter:
Get the transactions from the server using filter.Requires token.More…
(void) - retrieveSettings
Retrieve configuration settings from the server. <html><a href="doku.php; refund.uniqueRef = “FYG0UCFLRA”; refund.reason = @“reason”; </code> <html></div></html> <html></div></html> <html><a id="a421b214a570a7757b4adc3889198e3c5 "></html><html></a></html> <html><div class="memtitle "></html><html><span class="permalink "></html><html><a href="doku.php; sale.cardCvv = “111”; sale.cardHolderName = @“Test user”; sale.cardNumber = @“4111111111111111”; sale.cardType= @“VISA”; sale.expiryDate = @“1215”; </code> <html></div></html> <html></div></html> <html><a id="a517f4cd09b7846206b50da41155b825e "></html><html></a></html> <html><div class="memtitle "></html><html><span class="permalink "></html><html><a href="doku.php; refund.cardCvv = “111”; refund.cardHolderName = @“Test user”; refund.cardNumber = @“4111111111111111”; refund.cardType= @“VISA”; refund.expiryDate = @“1215”; refund.reason=@“reason”; [[WTPSTerminal singleton] processUnreferencedRefund:refund]; </code>

registerCoreAPIDeviceListener:()

  • - (void) registerCoreAPIDeviceListener:
  • (id< CoreAPIDeviceListener >)
  • listener

registerCoreAPIMessageListener:()

  • - (void) registerCoreAPIMessageListener:
  • (id< CoreAPIMessageListener >)
  • listener

registerCoreAPIRefundListener:()

  • - (void) registerCoreAPIRefundListener:
  • (id< CoreAPIRefundListener >)
  • listener

registerCoreAPIReportingListener:()

  • - (void) registerCoreAPIReportingListener:
  • (id< CoreAPIReportingListener >)
  • listener

registerCoreAPIReversalListener:()

  • - (void) registerCoreAPIReversalListener:
  • (id< CoreAPIReversalListener >)
  • listener

registerCoreAPISaleListener:()

  • - (void) registerCoreAPISaleListener:
  • (id< CoreAPISaleListener >)
  • listener

registerCoreAPISecureCardListener:()

  • - (void) registerCoreAPISecureCardListener:
  • (id< CoreAPISecureCardListener >)
  • listener

registerCoreAPISettingsListener:()

  • - (void) registerCoreAPISettingsListener:
  • (id< CoreAPISettingsListener >)
  • listener

registerCoreAPIUpdateListener:()

  • - (void) registerCoreAPIUpdateListener:
  • (id< CoreAPIUpdateListener >)
  • listener

registerLogListener:()

  • - (void) registerLogListener:
  • (id< CoreAPILogsListener >)
  • logsListener

registerSecureCard:()

Register a new secure card into the system.to be registered.

Example:

CoreSecureCard secureCard = [[CoreSecureCard alloc] init];
secureCard.merchantReference = "MR01";
[[WTPSTerminal singleton] registerSecureCard:secureCard];

releaseResources()

  • - (void) releaseResources

Release terminal resources.

requestSecuredUrl:()

  • - (void) requestSecuredUrl:
  • (NSString *)
  • schema

Get back the Secured URL which is used to get the token after signing in.

Parameters

  • schema
  • represents application scheme to be started after successful authentication, schema will need to be defined in info.plist

Example:

[[WTPSTerminal singleton] requestSecuredUrl:"corepayment://com.payments.core"];

retrieveSecureCard:()

  • - (void) retrieveSecureCard:
  • (NSString *)
  • merchantReference

Retrieve a secure card from the system.of the previously registered secure card.

Example:

[[WTPSTerminal singleton] retrieveSecureCard:"MR01"];

retrieveSettings()

  • - (void) retrieveSettings

Retrieve configuration settings from the server.

[[WTPSTerminal singleton] retrieveSettings];

selectBTDevice:()

  • - (void) selectBTDevice:
  • (int)
  • device

Select bluetooth address of the device to be initaliesed.This must be called after on onSelectBTDevice has been fired.to be selected.

Example:

[[WTPSTerminal singleton] selectBTDevice:0];

setConnectionTimeout:()

  • - (BOOL) setConnectionTimeout:
  • (int)
  • connectTimeout

setDebug:()

  • - (void) setDebug:
  • (bool)
  • debug

Used to set Terminal to Demo mode.

setLogLevel:()

  • - (void) setLogLevel:
  • (LogLevel)
  • logLevel

setMode:()

  • - (void) setMode:
  • (CoreMode)
  • mode

Set Live, Demo or SelfTest mode.

setOfflineMode:()

  • - (BOOL) setOfflineMode:
  • (BOOL)
  • offline

submitAmount:()

  • - (void) submitAmount:
  • (CoreSale *)
  • coreSale

Submit amount is the last call for delayed auth transactions.

submitApplication:()

  • - (void) submitApplication:
  • (int)
  • app

Submits application.This must be called after on onSelectApplication has been fired.to be selected.

Example:

[[WTPSTerminal singleton] submitApplication:0];

submitSignature:()

Used to send the user signature.

Parameters

  • signature
  • represents coreSignature object

unRegisterCoreAPIDeviceListener:()

  • - (void) unRegisterCoreAPIDeviceListener:
  • (id< CoreAPIDeviceListener >)
  • listener

unRegisterCoreAPIListener:()

  • - (void) unRegisterCoreAPIListener:
  • (id< CoreAPIListener >)
  • listener

unRegisterCoreAPIMessageListener:()

  • - (void) unRegisterCoreAPIMessageListener:
  • (id< CoreAPIMessageListener >)
  • listener

unRegisterCoreAPIRefundListener:()

  • - (void) unRegisterCoreAPIRefundListener:
  • (id< CoreAPIRefundListener >)
  • listener

unRegisterCoreAPIReportingListener:()

  • - (void) unRegisterCoreAPIReportingListener:
  • (id< CoreAPIReportingListener >)
  • listener

unRegisterCoreAPIReversalListener:()

  • - (void) unRegisterCoreAPIReversalListener:
  • (id< CoreAPIReversalListener >)
  • listener

unRegisterCoreAPISaleListener:()

  • - (void) unRegisterCoreAPISaleListener:
  • (id< CoreAPISaleListener >)
  • listener

unRegisterCoreAPISecureCardListener:()

  • - (void) unRegisterCoreAPISecureCardListener:
  • (id< CoreAPISecureCardListener >)
  • listener

unRegisterCoreAPISettingsListener:()

  • - (void) unRegisterCoreAPISettingsListener:
  • (id< CoreAPISettingsListener >)
  • listener

unRegisterCoreAPIUpdateListener:()

  • - (void) unRegisterCoreAPIUpdateListener:
  • (id< CoreAPIUpdateListener >)
  • listener

updateSettings:()

Update tip and tax settings.

Parameters

Example:

CoreTerminalUpdate //terminalUpdate = [[CoreTerminalUpdate alloc] init];
CoreTaxOrTip// taxOrTip = [[CoreTaxOrTip alloc] init];
CoreTax* tax = [[CoreTax alloc] init];
tax.percentage = [NSNumber numberWithDouble: 12.4];
tax.name = "Test IOS CREATE TEST";
taxOrTip.tax= tax;
[terminalUpdate.settingsCreate addObject:taxOrTip];
[[WTPSTerminal singleton] updateTipAndTax:terminalUpdate];

updateTransaction:()

  • - (void) updateTransaction:
  • (CoreUpdate *)
  • update

Update the transaction, send receipt to a user by an email or number.

Parameters

  • update
  • represents coreUpdate object

Example to create an update object.

CoreUpdate* update = [[CoreUpdate alloc] init];
update.email = "test@.nosp@m.gmai.nosp@m.l.com";
update.mobile = @"948348348";
update.uniqueRef = @"DSSAAGG";
[[WTPSTerminal singleton] updateTransaction:update];

Member Data Documentation

pad0

    • - pad0

  • protected

Property Documentation

device

    • - (DeviceEnum) device

  • readwriteatomic

This property represents device.

settings

This property represents SDK mode.