Make AshraitEMV service ready to do transactions.
51 if ( (AshraitServiceHandle = PaymentInterface.
GetServiceHandler(
"AshraitEMV")) == NULL)
55 if (AshraitServiceHandle == NULL)
59 AshraitServiceHandle->
Init(
"Machine_Serial_Number");
69 std::string ReportResult;
71 AshraitServiceHandle->
EndOfDay(&ReportObject);
72 if (ReportObject.GetPrintableString(ReportResult) == SPI_SUCESS)
73 std::cout << ReportResult;
79 std::cout <<
"Ready to use";
virtual SPILIBRARY_API SPI_RET_VAL Init(string DeviceSerialNo)=0
Initialize the payment service.
This class contains all the methods to Config a Service or a device when attached to a Service...
This class contains all the requiered operations for Reports.
virtual SPILIBRARY_API SPI_RET_VAL DoEstablishment(string Retailer)=0
Establishes the service and makes it ready for use, considering database, etc. Must be called once or...
virtual SPILIBRARY_API SPI_RET_VAL EndOfDay(Report *ReportResult)=0
End of day function is batching all transactions to Service processor. This method is blocking and re...
virtual SPILIBRARY_API SPI_STATUS GetServiceStatus()=0
Get service status.
This class contains all the operations that Avilible for a Service. Since this class is abstract...
SPILIBRARY_API Service * AddService(string ServiceName, ServiceID Id, Config &ServiceConfig)
Defines an active payment service and initilaizes it. Should be called before any operation is made w...
SPILIBRARY_API void GetSPIVersion(string &Version)
Retrieve SPI version into string.
SPILIBRARY_API Service * GetServiceHandler(string ServiceName)
Retrieves handle of active payment service instance according its name.
This class contains all the operations of the Payment Interface, Creation and Services management...