SPI  1.2111.4
Secured Payment Interface
Config.h
Go to the documentation of this file.
1 
15 #ifndef __CONFIG__H__
16 #define __CONFIG__H__
17 
18 #include <stdio.h>
19 #include <string>
20 #include <cstring>
21 
22 #include "SPIDEF.h"
23 
24 
25 using std::string;
26 
27 namespace Modularity {
28 
29  namespace SPI {
33  class Config {
34 
35  public:
39  SPILIBRARY_API Config();
40 
46  SPILIBRARY_API Config(string IP, PortType RFU);
47 
54  SPILIBRARY_API Config(string COMPort);
55 
60  SPILIBRARY_API Config (const Config& TmpConfig);
61 
66  SPILIBRARY_API Config& operator= (const Config & NewConfig);
67 
75  SPILIBRARY_API SPI_RET_VAL SetCertificateFilesDirectory(string Path);
76 
85  SPILIBRARY_API SPI_RET_VAL SetProcessorIPAddress(string IPAddress);
86 
96  SPILIBRARY_API SPI_RET_VAL SetProcessorPortNumber(PortType Port);
97 
105  SPILIBRARY_API SPI_RET_VAL SetManufactureID(string ID);
106 
115  SPILIBRARY_API SPI_RET_VAL SetECRIdentifier(string ID);
116 
123  SPILIBRARY_API void EnableMiniSettelment();
124 
129  SPILIBRARY_API void DisableFullPanOnMerchentReceipt();
130 
131 
141 
148  SPILIBRARY_API void SetMutavByMutag(Modularity::SPI::Ashrait::Mutag mutag, std::string mutav);
149 
155  SPILIBRARY_API void SetProcessorEndpoint(std::string endpoint);
156 
161  SPILIBRARY_API string GetIP();
162 
167  SPILIBRARY_API string GetCOM();
168 
173  SPILIBRARY_API ExcUnitLocation GetEUL();
174 
179  SPILIBRARY_API SPI_STATUS GetStatus();
180 
184  SPILIBRARY_API void EnableNayaxXCR();
185 
189  SPILIBRARY_API void SetMasterSlaveMode(MasterSlaveMode mode);
190 
194  SPILIBRARY_API void UseTestCertificate();
195 
199  SPILIBRARY_API void EnableBalanceQueryLoyalty();
200 
201 
208  SPILIBRARY_API void ConfigPaymentAggregator(std::string Key, std::string Value);
209 
216  SPILIBRARY_API void SetCustomAttribute(const std::string& Key, std::string Value);
217 
223  SPILIBRARY_API string GetCustomAttribute(const std::string& Key);
224 
225 
226 
230  SPILIBRARY_API ~Config();
231 
236  private:
237 
238  APIHandle ConfigHandle;
239  };
240 
241  }
242 
243 }
244 
245 
246 
247 
248 
249 #endif
250 
251 
SPILIBRARY_API string GetIP()
Get IP provided in TCP based in TCP constructor.
SPILIBRARY_API Config & operator=(const Config &NewConfig)
Copy constructor.
This namespace contains avilible API from Modularity Inc.
APIHandle GetConfigHandle()
Reserved for internal useage.
This class contains all the methods to Config a Service or a device when attached to a Service...
Definition: Config.h:33
SPILIBRARY_API ExcUnitLocation GetEUL()
Get the execute location of the service.
SPILIBRARY_API void EnableBalanceQueryLoyalty()
Query Balance for a prepaid card before loyalty phase.
SPILIBRARY_API void SetMutavByMutag(Modularity::SPI::Ashrait::Mutag mutag, std::string mutav)
Set Rav mutav by Mutag.
SPILIBRARY_API void ConfigPaymentAggregator(std::string Key, std::string Value)
Set Payment Aggregator configuration. Key "name" must be set according to the payment aggreagtor...
SPILIBRARY_API SPI_RET_VAL SetProcessorPortNumber(PortType Port)
Set Proccessor Port number. For SHVA test envitment calling this method is not necessary.
SPILIBRARY_API ~Config()
default destructor
SPILIBRARY_API string GetCOM()
Get Serial port provided in Seri based in TCP constructor.
SPILIBRARY_API void SetProcessorID(Modularity::SPI::Ashrait::ProcessorId Id)
Set your service processor. Using this will load deafult certificate and settings for choosen process...
SPILIBRARY_API void SetMasterSlaveMode(MasterSlaveMode mode)
Set Master/Slave Mode, none is default.
usint PortType
Definition: SPIDEF.h:44
SPILIBRARY_API SPI_RET_VAL SetProcessorIPAddress(string IPAddress)
Set Proccessor IP address directory. For SHVA test envitment set the following address: 193...
SPILIBRARY_API void UseTestCertificate()
Use test enviorment certificate for the gateway if needed.
SPILIBRARY_API SPI_RET_VAL SetCertificateFilesDirectory(string Path)
Set certificate directory.
SPILIBRARY_API string GetCustomAttribute(const std::string &Key)
Get custom attribute.
SPILIBRARY_API SPI_RET_VAL SetECRIdentifier(string ID)
ECR Identifier number In AshraitEMV , ID must be a number in range of 1:999.
SPILIBRARY_API void EnableMiniSettelment()
Enable mini settelment transmission post sucessful transaction. Mini-settlment is done as part of thr...
SPILIBRARY_API void EnableNayaxXCR()
Enavble Nayax External cashless report.
This file conatins all defenitions which are used in SPI API.
SPILIBRARY_API void DisableFullPanOnMerchentReceipt()
Disable get the PAN unmasked in merchent receipt.
void * APIHandle
Definition: SPIDEF.h:41
SPILIBRARY_API void SetCustomAttribute(const std::string &Key, std::string Value)
Set custom attribute to pass to Device using SetConfig.
SPILIBRARY_API void SetProcessorEndpoint(std::string endpoint)
Set endpoint to gateway (eg Tranzilla)
SPILIBRARY_API Config()
This constructor is used when service is running on the machine as dynamic library.
SPILIBRARY_API SPI_STATUS GetStatus()
Get status of Config (Not supported in this version)
SPILIBRARY_API SPI_RET_VAL SetManufactureID(string ID)
Manufacture Id in Process.