PaymentBrowser constructor
PaymentBrowser({
- required String paymentUrl,
- required String redirectUrl,
- required BrowserCompletionCallback onFinishCallback,
- required UrlChangeCallback onUrlChange,
Creates a new PaymentBrowser instance.
Parameters:
paymentUrl
: The URL of the payment page to loadredirectUrl
: The URL to redirect to after paymentonFinishCallback
: Called when payment completesonUrlChange
: 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();
}