PaymentWebView constructor

const PaymentWebView({
  1. Key? key,
  2. required String paymentUrl,
  3. required PaymentProvider provider,
  4. String? successUrlPattern,
  5. String? cancelUrlPattern,
  6. String? failureUrlPattern,
  7. String? orderId,
  8. PaymentSuccessCallback? onSuccess,
  9. PaymentFailureCallback? onFailure,
  10. PaymentCancelledCallback? onCancelled,
  11. Duration timeout = const Duration(minutes: 15),
  12. Widget? loadingWidget,
  13. Widget errorWidgetBuilder(
    1. 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,
});