![]() |
SPI
1.1.30
Secured Payment Interface
|
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...
#include <transaction.h>
Public Member Functions | |
| APIHandle | GetTransactionHandle () const |
| Reserved for internal useage. | |
Pre Transaction Information | |
Those methods can be called before transaction is executed. | |
| SPILIBRARY_API | Transaction (AmountType Amount, CurrencyType Currency, string VendorUID) |
| Transaction constructor. Can't be used explicitly as Transaction is pure virtual. | |
| virtual SPILIBRARY_API | ~Transaction ()=0 |
| Class destructor. | |
| SPILIBRARY_API PPIDType | GetPinPadId () const |
| Get device identification number used to make the transaction. | |
| SPILIBRARY_API void | SetPinPadId (PPIDType PinPadID) |
| Set device identification number used to make the transaction. | |
| SPILIBRARY_API string | GetVendorUID () const |
| Get vendor unique ID as initialized at derived class constructor. | |
| SPILIBRARY_API AmountType | GetAmount () const |
| Get Transaction original amount as initialized at derived class constructor. | |
| SPILIBRARY_API CurrencyType | GetCurrency () const |
| Get currency enumerator as initialized at derived class constructor. | |
Post Transaction Information | |
Those methods can be called after transaction is executed. | |
| SPILIBRARY_API ResultType | GetTransactionResultCode () const |
| Get transaction result code. If called before transaction was ended, a speical code -999 (Transaction in progress) is returned. Each code has a message. You may see Result Codes Messages for reference. | |
| SPILIBRARY_API std::string | GetTransactionResultMessage () const |
| Get transaction result message. All messages are in Hebrew and encoded in UTF-8 If called before transaction was ended a speical message is returned - "Transaction in progress" (In Hebrew). | |
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.
Definition at line 30 of file transaction.h.
| SPILIBRARY_API Modularity::SPI::Transaction::Transaction | ( | AmountType | Amount, |
| CurrencyType | Currency, | ||
| string | VendorUID | ||
| ) |
Transaction constructor. Can't be used explicitly as Transaction is pure virtual.
| [in] | Amount | is the transaction original amount. |
| [in] | Currency | the transaction CurrencyType. |
| [in] | VendorUID | is an identifier string generated by the ECR. Can't be empty string. |
| SPILIBRARY_API AmountType Modularity::SPI::Transaction::GetAmount | ( | ) | const |
Get Transaction original amount as initialized at derived class constructor.
| SPILIBRARY_API CurrencyType Modularity::SPI::Transaction::GetCurrency | ( | ) | const |
Get currency enumerator as initialized at derived class constructor.
| SPILIBRARY_API PPIDType Modularity::SPI::Transaction::GetPinPadId | ( | ) | const |
Get device identification number used to make the transaction.
| SPILIBRARY_API ResultType Modularity::SPI::Transaction::GetTransactionResultCode | ( | ) | const |
Get transaction result code. If called before transaction was ended, a speical code -999 (Transaction in progress) is returned. Each code has a message. You may see Result Codes Messages for reference.
| SPILIBRARY_API std::string Modularity::SPI::Transaction::GetTransactionResultMessage | ( | ) | const |
Get transaction result message. All messages are in Hebrew and encoded in UTF-8 If called before transaction was ended a speical message is returned - "Transaction in progress" (In Hebrew).
| SPILIBRARY_API string Modularity::SPI::Transaction::GetVendorUID | ( | ) | const |
Get vendor unique ID as initialized at derived class constructor.
| SPILIBRARY_API void Modularity::SPI::Transaction::SetPinPadId | ( | PPIDType | PinPadID | ) |
Set device identification number used to make the transaction.
| [in] | PinPadID | is an identification number for the device. |
1.8.2