PaymentService class

A service class responsible for handling payment-related operations, such as initiating payments and verifying payments, by interacting with the API.

Constructors

PaymentService()

Properties

apiClient ApiClient
The ApiClient instance used for making API requests.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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