PaymentWebView constructor
const
PaymentWebView({
- Key? key,
- required String paymentUrl,
- required PaymentProvider provider,
- String? successUrlPattern,
- String? cancelUrlPattern,
- String? failureUrlPattern,
- String? orderId,
- PaymentSuccessCallback? onSuccess,
- PaymentFailureCallback? onFailure,
- PaymentCancelledCallback? onCancelled,
- Duration timeout = const Duration(minutes: 15),
- Widget? loadingWidget,
- Widget errorWidgetBuilder(
- String error
Implementation
const PaymentWebView({
super.key,
required this.paymentUrl,
required this.provider,
this.successUrlPattern,
this.cancelUrlPattern,
this.failureUrlPattern,
this.orderId,
this.onSuccess,
this.onFailure,
this.onCancelled,
this.timeout = const Duration(minutes: 15),
this.loadingWidget,
this.errorWidgetBuilder,
});