@flopay/react 1.1.3 → 1.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -753,7 +753,7 @@ function DirectPayPalButton({
753
753
  if (!clientId) {
754
754
  appendDebug("FAIL: clientId empty \u2014 gateway misconfigured");
755
755
  setFailed(true);
756
- onErrorChangeRef.current?.("Direct PayPal gateway is misconfigured.");
756
+ console.error("[FloPay] DirectPayPal: clientId empty \u2014 gateway misconfigured");
757
757
  return;
758
758
  }
759
759
  if (!containerRef.current) {
@@ -874,7 +874,7 @@ function DirectPayPalButton({
874
874
  return;
875
875
  }
876
876
  setFailed(true);
877
- forwardError(message);
877
+ console.error("[FloPay] DirectPayPal load/render failure:", message);
878
878
  };
879
879
  setFailed(false);
880
880
  const dispatchTokenizedBody = async (body) => {