MoolrePayButton constructor

const MoolrePayButton({
  1. Key? key,
  2. required double amount,
  3. required String publicKey,
  4. required String accountNumber,
  5. String currency = 'GHS',
  6. String? email,
  7. String? reference,
  8. String? callbackUrl,
  9. ButtonStyle? style,
  10. void onSuccess(
    1. String reference
    )?,
  11. void onError(
    1. String code,
    2. String message
    )?,
})

Implementation

const MoolrePayButton({
  Key? key,
  required this.amount,
  required this.publicKey,
  required this.accountNumber,
  this.currency = 'GHS',
  this.email,
  this.reference,
  this.callbackUrl,
  this.style,
  this.onSuccess,
  this.onError,
}) : super(key: key);