Wt  3.7.1
Public Types | Public Member Functions | List of all members
Wt::Payment::Approval Class Reference

A class that represents the result of a payment. More...

#include <Wt/Payment/Result>

Inheritance diagram for Wt::Payment::Approval:
Inheritance graph
[legend]

Public Types

enum  Outcome { Denied = 0, Interrupted = 1, Accepted = 2 }
 Enumeration for a payment approval outcome. More...
 

Public Member Functions

 Approval (Outcome outcome)
 Constructor.
 
 Approval (const WString &errorMessage)
 Constructor for an interrupted payment.
 
Outcome outcome () const
 Returns the outcome.
 
- Public Member Functions inherited from Wt::Payment::Result
 Result ()
 Default constructor. More...
 
 Result (const WString &errorMessage)
 Constructor with an error message. More...
 
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. More...
 
std::map< std::string, std::string > requestMessage () const
 Returns the request parameters. More...
 
void setResponseMessage (const std::map< std::string, std::string > &msg)
 Sets the response parameters. More...
 
std::map< std::string, std::string > responseMessage () const
 Returns the response parameters. More...
 

Detailed Description

A class that represents the result of a payment.

Member Enumeration Documentation

◆ Outcome

Enumeration for a payment approval outcome.

Enumerator
Denied 

The user denied the payment.

Interrupted 

The payment process was interrupted.

Accepted 

The user accepted the payment.


Generated on Tue Dec 15 2020 for the C++ Web Toolkit (Wt) by doxygen 1.8.13