LokotroPaymentService class

Main payment service that follows the new Lokotro Gateway API flow

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

createPayment(LokotroPaymentRequest request) Future<LokotroPaymentResponse>
Step 1: Create payment transaction POST /payments/collect
getTransactionDetails(String transactionId) Future<LokotroTransactionDetails>
Step 2: Get transaction details GET /payments/transaction/{transaction_id}
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resendOtp(LokotroOtpResendRequest request) Future<LokotroOtpResendResponse>
Step 5: Resend OTP (if needed) POST /payments/resend-otp
setAppKey(String appKey) → void
@deprecated Use setSessionToken. Removed in 4.x.
setSessionToken(String sessionToken) → void
Set session token for authentication (Auth-v3).
submitPaymentDetails(LokotroPaymentSubmitRequest request) Future<LokotroPaymentSubmitResponse>
Step 3: Submit payment details POST /payments/submit
toString() String
A string representation of this object.
inherited
verifyOtp(LokotroOtpVerifyRequest request) Future<LokotroOtpVerifyResponse>
Step 4: Verify OTP (for e-wallet and flash payments) POST /payments/verify-otp

Operators

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

Static Properties

instance LokotroPaymentService
Get singleton instance
no setter