web_run_payment_request library

Functions

runWebPaymentRequest(BuildContext context, {required String publishableKey, String? clientSecret, required String method, required String amount, Map<String, dynamic>? merchantArgs, void onResult(StripePaymentResult)?}) Future<void>
Helper for web to run a payment flow. NOTE: showLpePaysheet uses webview_flutter (which requires a platform implementation). On web browsers we cannot construct that WebView controller, so prefer a native web flow. If a full PaymentRequest implementation is not available, we return a friendly failure instead of crashing.