Moosyl constructor

const Moosyl({
  1. Key? key,
  2. required String publishableApiKey,
  3. required String transactionId,
  4. Widget inputBuilder(
    1. VoidCallback open
    )?,
  5. FutureOr<void> onPaymentSuccess(
    1. bool isSuccess
    )?,
  6. bool isFullPage = false,
  7. bool isMasriviInBottomSheet = false,
  8. String? masriviPhoneNumber,
  9. double masriviBottomSheetHeight = 0.88,
})

Constructor for Moosyl.

  • publishableApiKey: The API key for payment authentication.
  • transactionId: The transaction ID for the current payment session.
  • inputBuilder: A function to build a custom input widget.
  • onPaymentSuccess: Callback when the payment is successful.

Implementation

const Moosyl({
  super.key,
  required this.publishableApiKey,
  required this.transactionId,
  this.inputBuilder,
  this.onPaymentSuccess,
  this.isFullPage = false,
  this.isMasriviInBottomSheet = false,
  this.masriviPhoneNumber,
  this.masriviBottomSheetHeight = 0.88,
});