diff --git a/src/Payments/PayPal.res b/src/Payments/PayPal.res index a3ca1fcca..3e4c0f541 100644 --- a/src/Payments/PayPal.res +++ b/src/Payments/PayPal.res @@ -48,7 +48,7 @@ let make = () => { ->then(result => { let result = result->JSON.Decode.bool->Option.getOr(false) if result { - UtilityHooks.useHandlePostMessages(~complete=true, ~empty=true, ~paymentType="paypal") + UtilityHooks.useHandlePostMessages(~complete=true, ~empty=false, ~paymentType="paypal") let (connectors, _) = paymentMethodListValue->PaymentUtils.getConnectors(Wallets(Paypal(Redirect))) let body = PaymentBody.paypalRedirectionBody(~connectors) diff --git a/src/Payments/PaypalSDKHelpers.res b/src/Payments/PaypalSDKHelpers.res index 661ed5358..b35f140c1 100644 --- a/src/Payments/PaypalSDKHelpers.res +++ b/src/Payments/PaypalSDKHelpers.res @@ -30,7 +30,7 @@ let loadPaypalSDK = ( ->then(result => { let result = result->JSON.Decode.bool->Option.getOr(false) if result { - UtilityHooks.useHandlePostMessages(~complete=true, ~empty=true, ~paymentType="paypal") + UtilityHooks.useHandlePostMessages(~complete=true, ~empty=false, ~paymentType="paypal") let paypalWrapper = GooglePayType.getElementById(Utils.document, "paypal-button") paypalWrapper.innerHTML = "" paypal["Buttons"]({