@reevit/react 0.5.8 → 0.5.9

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
@@ -174,7 +174,7 @@ var ReevitAPIClient = class {
174
174
  const headers = {
175
175
  "Content-Type": "application/json",
176
176
  "X-Reevit-Client": "@reevit/react",
177
- "X-Reevit-Client-Version": "0.3.2"
177
+ "X-Reevit-Client-Version": "0.5.9"
178
178
  };
179
179
  if (this.publicKey) {
180
180
  headers["X-Reevit-Key"] = this.publicKey;
@@ -2245,19 +2245,6 @@ function ReevitCheckout({
2245
2245
  selectMethod(activeProvider.methods[0]);
2246
2246
  }
2247
2247
  }, [activeProvider, selectedMethod, selectMethod]);
2248
- useEffect(() => {
2249
- if (isOpen && selectedMethod && paymentIntent && !showPSPBridge) {
2250
- const psp = (selectedProvider || paymentIntent.recommendedPsp || "paystack").toLowerCase();
2251
- const needsPhone = psp.includes("mpesa");
2252
- if (selectedMethod === "card") {
2253
- setShowPSPBridge(true);
2254
- } else if (selectedMethod === "mobile_money") {
2255
- if (!needsPhone || (momoData?.phone || phone)) {
2256
- setShowPSPBridge(true);
2257
- }
2258
- }
2259
- }
2260
- }, [isOpen, selectedMethod, showPSPBridge, paymentIntent, momoData, phone, selectedProvider]);
2261
2248
  const handleOpen = useCallback(() => {
2262
2249
  if (controlledIsOpen !== void 0) return;
2263
2250
  setIsOpen(true);