diff --git a/packages/stripe_js/lib/src/js/payment_requests/payment_request.dart b/packages/stripe_js/lib/src/js/payment_requests/payment_request.dart index eb0190acd..fca5def37 100644 --- a/packages/stripe_js/lib/src/js/payment_requests/payment_request.dart +++ b/packages/stripe_js/lib/src/js/payment_requests/payment_request.dart @@ -62,7 +62,7 @@ extension type JsPaymentResponse._(JSObject o) { @JS('complete') external JSFunction get _complete; void Function(String) get complete { - return (String val) => _complete.callAsFunction(val.toJS); + return _complete.dartify() as void Function(String); } }