ApiService class
A service class for handling API requests related to payment processing. This class encapsulates the logic for initiating a payment transaction and inquiring about transaction status with the Easypaisa payment gateway.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
inquireTransaction(
{required String orderId, required String accountNum}) → Future< ApiResponse> - Inquires about the status of a transaction using the provided transaction ID.
-
requestPayment(
{required String amount, required String accountNo, required String email}) → Future< ApiResponse> - Initiates a payment request with the provided details.