Skip to content

Commit

Permalink
fix: apple_pay sdk pay now button (#365)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pritish Budhiraja authored May 10, 2024
1 parent f1a2849 commit dd1bb0f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Payments/ApplePay.res
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ let make = (
let areOneClickWalletsRendered = Recoil.useSetRecoilState(RecoilAtoms.areOneClickWalletsRendered)
let paymentMethodListValue = Recoil.useRecoilValueFromAtom(PaymentUtils.paymentMethodListValue)

UtilityHooks.useHandlePostMessages(
~complete=areRequiredFieldsValid,
~empty=areRequiredFieldsEmpty,
~paymentType="apple_pay",
)

let applePayPaymentMethodType = React.useMemo(() => {
switch PaymentMethodsRecord.getPaymentMethodTypeFromList(
~paymentMethodListValue,
Expand Down

0 comments on commit dd1bb0f

Please sign in to comment.