|
Wt
4.10.4
|
A class that represents the result of a payment API call. More...
#include <Wt/Payment/Result.h>
Public Member Functions | |
| Result () | |
| Default constructor. | |
| Result (const WString &errorMessage) | |
| Constructor with an error message. | |
| bool | error () const |
| Returns whether the result indicates success. | |
| WString | errorMessage () const |
| Returns the error message. | |
| void | setRequestMessage (const std::map< std::string, std::string > &msg) |
| Sets the request parameters. | |
| std::map< std::string, std::string > | requestMessage () const |
| Returns the request parameters. | |
| void | setResponseMessage (const std::map< std::string, std::string > &msg) |
| Sets the response parameters. | |
| std::map< std::string, std::string > | responseMessage () const |
| Returns the response parameters. | |
A class that represents the result of a payment API call.
This class indicates the result of an asynchronous call: error() indicates whether there was an error.
| Wt::Payment::Result::Result | ( | ) |
Default constructor.
This creates a successful result.
Constructor with an error message.
This creates an unsuccessful result. The error message cannot be empty.
| std::map< std::string, std::string > Wt::Payment::Result::requestMessage | ( | ) | const |
Returns the request parameters.
| std::map< std::string, std::string > Wt::Payment::Result::responseMessage | ( | ) | const |
Returns the response parameters.
Sets the request parameters.
For an asynchronous API call that uses name value pairs, this sets the underlying values that were sent in the request.