TransactPayApi class
The TransactPayApi
class provides methods to make API requests to
various endpoints related to payment processing. It uses encryption
to secure the data sent to the server.
Constructors
- TransactPayApi({required String apiKey, required String encryptionKey})
-
Constructor for the
TransactPayApi
class.
Properties
- apiKey → String
-
final
- encryptionService → EncryptionService
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
banks(
) → Future< Response> - Sends a request to retrieve a list of supported banks.
-
createOrder(
Map< String, dynamic> orderDetails) → Future<Response> - Sends a request to create a new order.
-
getPaymentKeys(
Map< String, dynamic> linkDetails) → Future<Response> - Sends a request to retrieve payment keys for initiating a transaction.
-
getPaymentLink(
Map< String, dynamic> linkDetails) → Future<Response> - Sends a request to retrieve a payment link.
-
makeApiRequest(
String endpoint, Map< String, dynamic> body, String method) → Future<Response> - Helper method to make API requests to the server.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
orderFee(
Map< String, dynamic> feeDetails) → Future<Response> - Sends a request to calculate the fee for an order.
-
orderStatus(
Map< String, dynamic> orderId) → Future<Response> - Sends a request to retrieve the status of an order.
-
payWithBankTransfer(
Map< String, dynamic> paymentDetails) → Future<Response> - Sends a request to process payment using bank transfer.
-
payWithCard(
Map< String, dynamic> paymentDetails) → Future<Response> - Sends a request to process payment using card details.
-
refundOrder(
Map< String, dynamic> refundDetails) → Future<Response> - Sends a request to refund a previous order.
-
saveCard(
Map< String, dynamic> cardDetails) → Future<Response> - Sends a request to save card details for future transactions.
-
tokenizeCharge(
Map< String, dynamic> chargeDetails) → Future<Response> - Sends a request to tokenize a card charge.
-
toString(
) → String -
A string representation of this object.
inherited
-
trackEvents(
Map< String, dynamic> eventDetails) → Future<Response> - Sends a request to track events (e.g., user actions or transaction events).
-
verifyOrder(
Map< String, dynamic> orderId) → Future<Response> - Sends a request to verify an order.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited