From 95bd3becbd30c3b37ef1ec1a6b7c6339bfc479e5 Mon Sep 17 00:00:00 2001 From: Dennis Cornwell Date: Thu, 5 Sep 2024 11:13:16 -0400 Subject: [PATCH] Fix marshaling of paymentRequest complete function args * --- .../stripe_js/lib/src/js/payment_requests/payment_request.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }