SPI  1.1.28
Secured Payment Interface
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
Namespaces | Classes | Enumerations
Modularity::SPI Namespace Reference

This namespace contains avilible classes and enumerators for SPI library. More...

Namespaces

namespace  Ashrait
 This namespace contains requiered enumerators for AshraitEMV service.
 

Classes

class  AshraitEMVTransaction
 This class contains all the input data and output data of AshraitEMV transactions, including the methods inherited from class Transaction. All data in this class is reachable through various methods which define the behaivor of the operation. More...
 
class  Config
 This class contains all the methods to Config a Service or a device when attached to a Service. More...
 
class  Report
 This class contains all the requiered operations for Reports. More...
 
class  Service
 This class contains all the operations that Avilible for a Service. Since this class is abstract, Servuce object is invlaid and can't be constructed. A Service handle is created by SPI class interface. All data in this class is reachable through various methods which define the behaivor of the operation. More...
 
class  SPI
 This class contains all the operations of the Payment Interface, Creation and Services management. More...
 
struct  ReceiptLine
 A struct which reprensts a line in receipt. More...
 
class  Transaction
 This class contains all the input data and output data of Transactions. Those methods are common to all the derived classes from Transaction. Since this class is abstract, Transaction object is invlaid and can't be constructed. All data in this class is reachable through various methods which define the behaivor of the operation. More...
 

Enumerations

enum  SPI_RET_VAL {
  SPI_SUCCESS = 0, SPI_ALREADY_EXIST = -1, SPI_FAIL = -2, SPI_INVALID = -3,
  SPI_MISSING_EVENT_HANDLER = -4, SPI_NOT_SUPPORTED = -5, SPI_ABORTED = -6, SPI_CONNECTION_ERR = -7,
  SPI_TIME_OUT = -8, SPI_NO_INIT = -999
}
 
enum  SPI_STATUS {
  SPI_READY = 0, SPI_READY_ONLINE = 1, SPI_NOT_ESTABLISHED = -1, SPI_NOT_READY = -2,
  SPI_ERROR = -3
}
 
enum  TransactionStatus { Tran_NotCompleted, Tran_Phase1Now, Tran_Completed }
 
enum  EndOfDayStatus { EndOfDay_NotCompleted, EndOfDay_Completed }
 
enum  ExcUnitLocation { SPIEXCUNIT_THISINT = 0, SPIEXCUNIT_IPINT = 1, SPIEXCUNIT_SERIALINT = 2, SPIEXCUNIT_NONE = 99 }
 
enum  ServiceID { AshraitService = 0, DebitService = 1, TransportationService = 2 }
 
enum  PP_Protocol { MP3 = 0, MPOS = 1, XPI = 2 }
 
enum  ReportType { X_REPORT = 0, Z_REPORT = 1 }
 
enum  ZReportFormat { ZReport_Narrow = 0, ZReport_Medium = 1, ZReport_Wide = 2, ZReport_XML = 3 }
 
enum  CurrencyType { Curr_Shekel = 376, Curr_Dollar = 840, Curr_Foreign = 0 }
 
enum  ExtendedEMVStatus {
  EMVStatus_Idle = 0, EMVStatus_Processing = 1, EMVStatus_WaitForCard = 2, EMVStatus_ReadingCard = 3,
  EMVStatus_ApplicationSelection = 4, EMVStatus_Loyalty = 5, EMVStatus_PinCode = 6, EMVStatus_FirstCardDecision = 7,
  EMVStatus_WaitProcessorApproval = 8, EMVStatus_FinalCardDecision = 9, EMVStatus_Completed = 10
}
 

Detailed Description

This namespace contains avilible classes and enumerators for SPI library.

Enumeration Type Documentation

The type of currency used to perform the transaction

Enumerator:
Curr_Shekel 

New Israeli Shekel

Curr_Dollar 

United States Dollar

Curr_Foreign 

Foreign Currency - Must set Foreign currency

Definition at line 164 of file SPIDEF.h.

{
Curr_Shekel = 376,
Curr_Dollar = 840,
};

Status of a nonblocking end of day batching

Enumerator:
EndOfDay_NotCompleted 

Batching not completed

EndOfDay_Completed 

Batching completed

Definition at line 116 of file SPIDEF.h.

Execution unit Location. Can be defined either to Service or to Pinpad while is added.

Enumerator:
SPIEXCUNIT_THISINT 

Local

SPIEXCUNIT_IPINT 

Remoted Service/Device over TCP/IP

SPIEXCUNIT_SERIALINT 

Remoted Service/Device over Serial port

SPIEXCUNIT_NONE 

None

Definition at line 123 of file SPIDEF.h.

Extended status about ongoing EMV transaction

Enumerator:
EMVStatus_Idle 

Transaction in idle mode

EMVStatus_Processing 

Processing

EMVStatus_WaitForCard 

Transaction waiting for card

EMVStatus_ReadingCard 

Reading the card

EMVStatus_ApplicationSelection 

Application selection

EMVStatus_Loyalty 

Card detected - In loyalty (Phase 1)

EMVStatus_PinCode 

Waiting for PIN code (Not supported yet)

EMVStatus_FirstCardDecision 

Doing first card decision

EMVStatus_WaitProcessorApproval 

Waiting for online approval from the processor

EMVStatus_FinalCardDecision 

Doing first card decision

EMVStatus_Completed 

Transaction completed

Definition at line 180 of file SPIDEF.h.

The Pinpad Protocol used when Adding a Pinpad

Enumerator:
MP3 

MP3

MPOS 

mPos (Not Supported this verison)

XPI 

XPI (Not Supported this verison)

Definition at line 140 of file SPIDEF.h.

{
MP3 = 0,
MPOS = 1,
XPI = 2
};

The type of report produced by a Service

Enumerator:
X_REPORT 

X Report - Current status of the service

Z_REPORT 

Z Report - Produced when batching all transactions in Service at end of day

Definition at line 148 of file SPIDEF.h.

{
X_REPORT = 0,
Z_REPORT = 1
};

The payment Services which are supported in SPI

Enumerator:
AshraitService 

Ashrait EMV

DebitService 

Debit (Not Supported this verison)

TransportationService 

Transportation (Not Supported this verison)

Definition at line 132 of file SPIDEF.h.

Return value from SPI API functions

Enumerator:
SPI_SUCCESS 

Operation OK

SPI_ALREADY_EXIST 

Can't perform operation, already been done

SPI_FAIL 

Operation failed

SPI_INVALID 

Invalid input according to the operation

SPI_MISSING_EVENT_HANDLER 

Missing information

SPI_NOT_SUPPORTED 

Operation isn't supported

SPI_ABORTED 

Aborted by user

SPI_CONNECTION_ERR 

Connection Error

SPI_TIME_OUT 

Time out

SPI_NO_INIT 

SPI/Service not initiated

Definition at line 83 of file SPIDEF.h.

SPI status

Enumerator:
SPI_READY 

Service is ready to use

SPI_READY_ONLINE 

Service is ready to use. All transactions verified against processor

SPI_NOT_ESTABLISHED 

Service isn't established

SPI_NOT_READY 

Service isn't ready to use

SPI_ERROR 

A general error occured

Definition at line 98 of file SPIDEF.h.

Status of a nonblocking transaction

Enumerator:
Tran_NotCompleted 

Transaction not completed

Tran_Phase1Now 

Transaction not completed, in loyalty state

Tran_Completed 

Transaction completed

Definition at line 108 of file SPIDEF.h.

Z Reprt format

Enumerator:
ZReport_Narrow 

Used for narrow paper

ZReport_Medium 

Used for medium paper

ZReport_Wide 

Used for wide paper

ZReport_XML 

This report is not printable and delivered in XML format for self parsing

Definition at line 155 of file SPIDEF.h.