PayloadModel constructor

PayloadModel({
  1. required String? currency,
  2. required String? transRef,
  3. String? email,
  4. String? description,
  5. String? fullName,
  6. required String? country,
  7. required String? amount,
  8. String? callbackUrl,
  9. required String? publicKey,
  10. String? narrator = 'seerbit-react-native',
  11. String? reportLink = "",
  12. String? pocketRef,
  13. String? vendorId,
  14. bool? closeOnSuccess,
  15. bool? closePrompt,
  16. bool? setAmountByCustomer,
  17. bool? tokenize = false,
  18. String? planId,
  19. CustomizationModel customization = const CustomizationModel(),
})

Implementation

PayloadModel(
    {required this.currency,
    required this.transRef,
    this.email,
    this.description,
    this.fullName,
    required this.country,
    required this.amount,
    this.callbackUrl,
    required this.publicKey,
    this.narrator = 'seerbit-react-native',
    this.reportLink = "",
    this.pocketRef,
    this.vendorId,
    this.closeOnSuccess,
    this.closePrompt,
    this.setAmountByCustomer,
    this.tokenize = false,
    this.planId,
    this.customization = const CustomizationModel()});