Paynow class

Contains helper methods to interact with the Paynow API.

Attributes: integrationId : Merchant's integration id. integrationKey : Merchant's integration key. returnUrl : Merchant's return url. resultUrl : Merchant's result url.

Args: integrationId : Merchant's integration id. (You can generate this in your merchant dashboard). integrationKey : Merchant's integration key. returnUrl : Merchant's return url. resultUrl: Merchant's result url.

Constructors

Paynow({required String integrationId, required String integrationKey, required String returnUrl, required String resultUrl, bool enableLogging = true})

Properties

dio ↔ Dio
Dio
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
integrationId String
Transaction initation url (constant). Merchant's integration Id.
getter/setter pair
integrationKey String
Merchant's Key.
getter/setter pair
resultUrl String
Merchant's Result Url.
getter/setter pair
returnUrl String
Merchant Return Url.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

checkTransactionStatus(String? pollUrl) Future<StatusResponse>
Check Transaction Status
closeStream() → void
close streamTransactionStatus stream
createPayment(String reference, String authEmail, {Currency currency = Currency.zwl}) Payment
Create Payment - Returns Payment
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
send(Payment payment) Future<InitResponse>
sendMobile(Payment payment, String phone, MobilePaymentMethod method) Future<InitResponse>
Initiate mobile transactions
streamTransactionStatus(String? pollUrl, {int streamInterval = 20}) Stream<StatusResponse>
Stream Transaction Status,
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

notQuotePlus(String value) String
parseExpiration(String date) DateTime?