LokotroPaymentBody constructor

LokotroPaymentBody({
  1. required String customerReference,
  2. required String amount,
  3. required String currency,
  4. String paymentMethod = 'wallet',
  5. String userInfo = 'full',
  6. String paymentMethodInfo = 'full',
  7. String feeCoveredBy = 'buyer',
  8. String deliveryBehaviour = 'direct_delivery',
  9. String? notifyUrl,
  10. String? successRedirectUrl,
  11. String? failRedirectUrl,
  12. String? firstName,
  13. String? lastName,
  14. String? phoneNumber,
  15. String? email,
  16. String? walletNumber,
  17. String? walletPin,
  18. String? mobileMoneyPhoneNumber,
  19. String? flashNumber,
  20. String? flashPin,
  21. String? cardNumber,
  22. String? cardExpiryDate,
  23. String? cardCvv,
  24. String? cardHolderName,
  25. LokotroMerchantInfo? merchant,
  26. String? mastercardPaymentMethod,
  27. String? transactionalCurrency,
  28. String? nativePayToken,
  29. String? nativePayTokenType,
  30. Map<String, dynamic>? metadata,
})

Implementation

LokotroPaymentBody({
  required this.customerReference,
  required this.amount,
  required this.currency,
  this.paymentMethod = 'wallet',
  this.userInfo = 'full',
  this.paymentMethodInfo = 'full',
  this.feeCoveredBy = 'buyer',
  this.deliveryBehaviour = 'direct_delivery',
  this.notifyUrl,
  this.successRedirectUrl,
  this.failRedirectUrl,
  // User info
  this.firstName,
  this.lastName,
  this.phoneNumber,
  this.email,
  // E-wallet
  this.walletNumber,
  this.walletPin,
  // Mobile money
  this.mobileMoneyPhoneNumber,
  // Flash
  this.flashNumber,
  this.flashPin,
  // Card
  this.cardNumber,
  this.cardExpiryDate,
  this.cardCvv,
  this.cardHolderName,
  // Merchant
  this.merchant,
  // Mastercard payment method
  this.mastercardPaymentMethod,
  // Transactional currency
  this.transactionalCurrency,
  // Native pay
  this.nativePayToken,
  this.nativePayTokenType,
  this.metadata,
});