From 0d8f1f76cadd8030b15af38669e5a038d1ddfd3b Mon Sep 17 00:00:00 2001 From: Pritish Budhiraja <1805317@kiit.ac.in> Date: Fri, 10 May 2024 20:26:44 +0530 Subject: [PATCH] fix: paynow button fix for required fields (#364) --- src/Payments/GPay.res | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Payments/GPay.res b/src/Payments/GPay.res index dea08587f..08c3493d9 100644 --- a/src/Payments/GPay.res +++ b/src/Payments/GPay.res @@ -79,6 +79,12 @@ let make = ( ) } + UtilityHooks.useHandlePostMessages( + ~complete=areRequiredFieldsValid, + ~empty=areRequiredFieldsEmpty, + ~paymentType="google_pay", + ) + React.useEffect(() => { let handle = (ev: Window.event) => { let json = try {