![]() |
SPI
1.2111.4
Secured Payment Interface
|
This class contains all the methods to Config a Service or a device when attached to a Service. More...
#include <Config.h>
Public Member Functions | |
| SPILIBRARY_API | Config () |
| This constructor is used when service is running on the machine as dynamic library. | |
| SPILIBRARY_API | Config (string IP, PortType RFU) |
| This constructor is used when service is running on remoted TCP service. More... | |
| SPILIBRARY_API | Config (string COMPort) |
| This constructor is used when service is running on remote serial service. Win32/Win64 users can use auto detection for com port by providing PID/VID. the format is fixed. example "USB\\VID_067B&PID_2303". More... | |
| SPILIBRARY_API | Config (const Config &TmpConfig) |
| Copy constructor. More... | |
| SPILIBRARY_API Config & | operator= (const Config &NewConfig) |
| Copy constructor. More... | |
| SPILIBRARY_API SPI_RET_VAL | SetCertificateFilesDirectory (string Path) |
| Set certificate directory. More... | |
| SPILIBRARY_API SPI_RET_VAL | SetProcessorIPAddress (string IPAddress) |
| Set Proccessor IP address directory. For SHVA test envitment set the following address: 193.142.151.62. More... | |
| SPILIBRARY_API SPI_RET_VAL | SetProcessorPortNumber (PortType Port) |
| Set Proccessor Port number. For SHVA test envitment calling this method is not necessary. More... | |
| SPILIBRARY_API SPI_RET_VAL | SetManufactureID (string ID) |
| Manufacture Id in Process. More... | |
| SPILIBRARY_API SPI_RET_VAL | SetECRIdentifier (string ID) |
| ECR Identifier number In AshraitEMV , ID must be a number in range of 1:999. More... | |
| SPILIBRARY_API void | EnableMiniSettelment () |
| Enable mini settelment transmission post sucessful transaction. Mini-settlment is done as part of thr transaction and transmitted to the IP set in SetProcessorIP() More... | |
| SPILIBRARY_API void | DisableFullPanOnMerchentReceipt () |
| Disable get the PAN unmasked in merchent receipt. More... | |
| SPILIBRARY_API void | SetProcessorID (Modularity::SPI::Ashrait::ProcessorId Id) |
| Set your service processor. Using this will load deafult certificate and settings for choosen processor. AshraitEMV service Note: SetProcessorIPAddress() and SetProcessorPortNumber() are still mandatory. Default value is ABS. More... | |
| SPILIBRARY_API void | SetMutavByMutag (Modularity::SPI::Ashrait::Mutag mutag, std::string mutav) |
| Set Rav mutav by Mutag. More... | |
| SPILIBRARY_API void | SetProcessorEndpoint (std::string endpoint) |
| Set endpoint to gateway (eg Tranzilla) More... | |
| SPILIBRARY_API string | GetIP () |
| Get IP provided in TCP based in TCP constructor. More... | |
| SPILIBRARY_API string | GetCOM () |
| Get Serial port provided in Seri based in TCP constructor. More... | |
| SPILIBRARY_API ExcUnitLocation | GetEUL () |
| Get the execute location of the service. More... | |
| SPILIBRARY_API SPI_STATUS | GetStatus () |
| Get status of Config (Not supported in this version) More... | |
| SPILIBRARY_API void | EnableNayaxXCR () |
| Enavble Nayax External cashless report. | |
| SPILIBRARY_API void | SetMasterSlaveMode (MasterSlaveMode mode) |
| Set Master/Slave Mode, none is default. | |
| SPILIBRARY_API void | UseTestCertificate () |
| Use test enviorment certificate for the gateway if needed. | |
| SPILIBRARY_API void | EnableBalanceQueryLoyalty () |
| Query Balance for a prepaid card before loyalty phase. | |
| SPILIBRARY_API void | ConfigPaymentAggregator (std::string Key, std::string Value) |
| Set Payment Aggregator configuration. Key "name" must be set according to the payment aggreagtor. More... | |
| SPILIBRARY_API void | SetCustomAttribute (const std::string &Key, std::string Value) |
| Set custom attribute to pass to Device using SetConfig. More... | |
| SPILIBRARY_API string | GetCustomAttribute (const std::string &Key) |
| Get custom attribute. More... | |
| SPILIBRARY_API | ~Config () |
| default destructor | |
| APIHandle | GetConfigHandle () |
| Reserved for internal useage. | |
This class contains all the methods to Config a Service or a device when attached to a Service.
| SPILIBRARY_API Modularity::SPI::Config::Config | ( | string | IP, |
| PortType | RFU | ||
| ) |
This constructor is used when service is running on remoted TCP service.
| [in] | IP | is the Service IP address |
| [in] | RFU | is unsued for this version |
| SPILIBRARY_API Modularity::SPI::Config::Config | ( | string | COMPort | ) |
This constructor is used when service is running on remote serial service. Win32/Win64 users can use auto detection for com port by providing PID/VID. the format is fixed. example "USB\\VID_067B&PID_2303".
| [in] | COMPort | is a string describing the Service serial port location. (COM/USB) |
| SPILIBRARY_API Modularity::SPI::Config::Config | ( | const Config & | TmpConfig | ) |
Copy constructor.
| [in] | TmpConfig | object |
| SPILIBRARY_API void Modularity::SPI::Config::ConfigPaymentAggregator | ( | std::string | Key, |
| std::string | Value | ||
| ) |
Set Payment Aggregator configuration. Key "name" must be set according to the payment aggreagtor.
| [in] | Key | the property name |
| [in] | Value | the property value |
| SPILIBRARY_API void Modularity::SPI::Config::DisableFullPanOnMerchentReceipt | ( | ) |
Disable get the PAN unmasked in merchent receipt.
| SPILIBRARY_API void Modularity::SPI::Config::EnableMiniSettelment | ( | ) |
Enable mini settelment transmission post sucessful transaction. Mini-settlment is done as part of thr transaction and transmitted to the IP set in SetProcessorIP()
| SPILIBRARY_API string Modularity::SPI::Config::GetCOM | ( | ) |
Get Serial port provided in Seri based in TCP constructor.
| SPILIBRARY_API string Modularity::SPI::Config::GetCustomAttribute | ( | const std::string & | Key | ) |
Get custom attribute.
| [in] | Key | the property name |
| SPILIBRARY_API ExcUnitLocation Modularity::SPI::Config::GetEUL | ( | ) |
Get the execute location of the service.
| SPILIBRARY_API string Modularity::SPI::Config::GetIP | ( | ) |
Get IP provided in TCP based in TCP constructor.
| SPILIBRARY_API SPI_STATUS Modularity::SPI::Config::GetStatus | ( | ) |
Get status of Config (Not supported in this version)
Copy constructor.
| [in] | NewConfig | object as left operand |
| SPILIBRARY_API SPI_RET_VAL Modularity::SPI::Config::SetCertificateFilesDirectory | ( | string | Path | ) |
Set certificate directory.
| [in] | Path | is path to directory |
| SPILIBRARY_API void Modularity::SPI::Config::SetCustomAttribute | ( | const std::string & | Key, |
| std::string | Value | ||
| ) |
Set custom attribute to pass to Device using SetConfig.
| [in] | Key | the property name |
| [in] | Value | the property value |
| SPILIBRARY_API SPI_RET_VAL Modularity::SPI::Config::SetECRIdentifier | ( | string | ID | ) |
ECR Identifier number In AshraitEMV , ID must be a number in range of 1:999.
| [in] | ID | is identifier. |
| SPILIBRARY_API SPI_RET_VAL Modularity::SPI::Config::SetManufactureID | ( | string | ID | ) |
Manufacture Id in Process.
| [in] | ID | is a string containing the manufacture ID. |
| SPILIBRARY_API void Modularity::SPI::Config::SetMutavByMutag | ( | Modularity::SPI::Ashrait::Mutag | mutag, |
| std::string | mutav | ||
| ) |
Set Rav mutav by Mutag.
| [in] | mutag | - Mutag brand enum |
| [in] | mutav | number |
| SPILIBRARY_API void Modularity::SPI::Config::SetProcessorEndpoint | ( | std::string | endpoint | ) |
Set endpoint to gateway (eg Tranzilla)
| [in] | endpoint | of the processor |
| SPILIBRARY_API void Modularity::SPI::Config::SetProcessorID | ( | Modularity::SPI::Ashrait::ProcessorId | Id | ) |
Set your service processor. Using this will load deafult certificate and settings for choosen processor. AshraitEMV service Note: SetProcessorIPAddress() and SetProcessorPortNumber() are still mandatory. Default value is ABS.
| [in] | Id | is identifier |
| SPILIBRARY_API SPI_RET_VAL Modularity::SPI::Config::SetProcessorIPAddress | ( | string | IPAddress | ) |
Set Proccessor IP address directory. For SHVA test envitment set the following address: 193.142.151.62.
| [in] | IPAddress | is a string containing the IP address of the processor. |
| SPILIBRARY_API SPI_RET_VAL Modularity::SPI::Config::SetProcessorPortNumber | ( | PortType | Port | ) |
Set Proccessor Port number. For SHVA test envitment calling this method is not necessary.
| [in] | SetProcessorPortNumber | is integer containing the server port number of the processor. |
1.8.14