MoosylPaymentMethods constructor
const
MoosylPaymentMethods({
- Key? key,
- required String publishableApiKey,
- String? transactionId,
- double amountToPay = 0.0,
- double tax = 0.0,
- double? totalAmount,
- String? selectedMethodId,
- ValueChanged<
ConfigurationListDataInner> ? onSelectMethod, - FutureOr<
void> onPaymentSuccess(- bool isSuccess
- ValueChanged<
Object> ? onPaymentError, - ValueChanged<
bool> ? onContinueLoadingChange, - MoosylPaymentMethodsController? controller,
- Color? primaryColor,
- MoosylPaymentMethodBuilder? renderMethod,
- Widget? loadingComponent,
- MoosylPaymentMethodsLoadingBuilder? loadingBuilder,
- bool showDefaultTitle = true,
- bool isMasriviInBottomSheet = true,
- MasriviWebViewPresentation masriviPresentation = MasriviWebViewPresentation.fullPage,
- String? masriviPhoneNumber,
- double masriviBottomSheetHeight = 0.88,
Creates a reusable payment method picker.
Implementation
const MoosylPaymentMethods({
super.key,
required this.publishableApiKey,
this.transactionId,
this.amountToPay = 0.0,
this.tax = 0.0,
this.totalAmount,
this.selectedMethodId,
this.onSelectMethod,
this.onPaymentSuccess,
this.onPaymentError,
this.onContinueLoadingChange,
this.controller,
this.primaryColor,
this.renderMethod,
this.loadingComponent,
this.loadingBuilder,
this.showDefaultTitle = true,
this.isMasriviInBottomSheet = true,
this.masriviPresentation = MasriviWebViewPresentation.fullPage,
this.masriviPhoneNumber,
this.masriviBottomSheetHeight = 0.88,
});