PaymentService class
A service class responsible for handling payment-related operations, such as initiating payments and verifying payments, by interacting with the API.
Constructors
Properties
Methods
-
initializeDirectPayment(
{required DirectChargeRequest request, required String publicKey}) → Future< NetworkResponse> - Initializes a direct payment request. This method sends a request to the API to initialize a direct payment. Returns a NetworkResponse containing the result of the payment initiation.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
verifyPayment(
{required ValidateDirectChargeRequest body, required String publicKey}) → Future< NetworkResponse> - Verifies a payment by checking its status. This method sends a request to the API to verify the status of a payment. Returns a NetworkResponse containing the result of the payment verification.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited