PaymentBrowser constructor

PaymentBrowser({
  1. required String paymentUrl,
  2. required String redirectUrl,
  3. required BrowserCompletionCallback onFinishCallback,
  4. required UrlChangeCallback onUrlChange,
})

Creates a new PaymentBrowser instance.

Parameters:

  • paymentUrl: The URL of the payment page to load
  • redirectUrl: The URL to redirect to after payment
  • onFinishCallback: Called when payment completes
  • onUrlChange: Called when browser navigates

All parameters are required and must not be null.

Implementation

PaymentBrowser({
  required this.paymentUrl,
  required this.redirectUrl,
  required this.onFinishCallback,
  required this.onUrlChange,
}) {
  _setupMethodHandler();
}