PaylinkAPI class

A class to interact with the Paylink API.

Implementers

Constructors

PaylinkAPI({required String apiId, required String secretKey, required String apiBaseUrl, required String paymentFrameUrl})
PaylinkAPI.production(String apiId, String secretKey)
Production constructor
factory
PaylinkAPI.test()
Test constructor
factory

Properties

apiBaseUrl String
final
apiId String
Properties
final
hashCode int
The hash code for this object.
no setterinherited
idToken String?
getter/setter pair
paymentFrameUrl String
final
persistToken bool
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
secretKey String
final

Methods

addInvoice({required double amount, required String clientMobile, required String clientName, String? clientEmail, required String orderNumber, required String callBackUrl, String? cancelUrl, String? currency = "SAR", required List<PaylinkProduct> products, String? note, String? smsMessage, List<String>? supportedCardBrands, bool displayPending = true}) Future<PaylinkInvoice>
Adds an invoice to the Paylink system.
cancelInvoice(String transactionNo) Future<bool>
Cancels an existing invoice.
getInvoice(String transactionNo) Future<PaylinkInvoice>
Retrieves invoice details
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