@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.cjs CHANGED
@@ -791,7 +791,7 @@ function DirectPayPalButton({
791
791
  if (!clientId) {
792
792
  appendDebug("FAIL: clientId empty \u2014 gateway misconfigured");
793
793
  setFailed(true);
794
- onErrorChangeRef.current?.("Direct PayPal gateway is misconfigured.");
794
+ console.error("[FloPay] DirectPayPal: clientId empty \u2014 gateway misconfigured");
795
795
  return;
796
796
  }
797
797
  if (!containerRef.current) {
@@ -912,7 +912,7 @@ function DirectPayPalButton({
912
912
  return;
913
913
  }
914
914
  setFailed(true);
915
- forwardError(message);
915
+ console.error("[FloPay] DirectPayPal load/render failure:", message);
916
916
  };
917
917
  setFailed(false);
918
918
  const dispatchTokenizedBody = async (body) => {