LokotroPaymentBody class

Payment body for Lokotro Pay - Updated to match new Gateway API (All-in-one request)

Constructors

LokotroPaymentBody({required String customerReference, required String amount, required String currency, String paymentMethod = 'wallet', String userInfo = 'full', String paymentMethodInfo = 'full', String feeCoveredBy = 'buyer', String deliveryBehaviour = 'direct_delivery', String? notifyUrl, String? successRedirectUrl, String? failRedirectUrl, String? firstName, String? lastName, String? phoneNumber, String? email, String? walletNumber, String? walletPin, String? mobileMoneyPhoneNumber, String? flashNumber, String? flashPin, String? cardNumber, String? cardExpiryDate, String? cardCvv, String? cardHolderName, LokotroMerchantInfo? merchant, String? mastercardPaymentMethod, String? transactionalCurrency, String? nativePayToken, String? nativePayTokenType, Map<String, dynamic>? metadata})
LokotroPaymentBody.fromLegacy({required String systemRef, String? customRef, Map<String, dynamic>? metadata, double amount = 100.0, String currency = 'USD'})
Create from old format for backward compatibility
factory

Properties

amount String
final
cardCvv String?
final
cardExpiryDate String?
final
cardHolderName String?
final
cardNumber String?
final
currency String
final
customerReference String
final
deliveryBehaviour String
final
email String?
final
failRedirectUrl String?
final
feeCoveredBy String
final
firstName String?
final
flashNumber String?
final
flashPin String?
final
hashCode int
The hash code for this object.
no setterinherited
lastName String?
final
mastercardPaymentMethod String?
final
merchant LokotroMerchantInfo?
final
metadata Map<String, dynamic>?
final
mobileMoneyPhoneNumber String?
final
nativePayToken String?
final
nativePayTokenType String?
final
notifyUrl String?
final
paymentMethod String
final
paymentMethodInfo String
final
phoneNumber String?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
successRedirectUrl String?
final
transactionalCurrency String?
final
userInfo String
final
walletNumber String?
final
walletPin String?
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Convert to JSON for API call (single request with all data)
toString() String
A string representation of this object.
inherited

Operators

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