Skip to content

Commit

Permalink
fix: paynow button fix for required fields (#364)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pritish Budhiraja authored May 10, 2024
1 parent cf34a04 commit 0d8f1f7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Payments/GPay.res
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 0d8f1f7

Please sign in to comment.