Moosyl constructor
const
Moosyl({
- Key? key,
- required String publishableApiKey,
- required String transactionId,
- Widget inputBuilder(
- VoidCallback open
- FutureOr<
void> onPaymentSuccess(- bool isSuccess
- bool isFullPage = false,
- bool isMasriviInBottomSheet = false,
- String? masriviPhoneNumber,
- 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,
});