@voyage_ai/v402-web-ts 0.1.3 → 0.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.
@@ -1746,7 +1746,7 @@ var notify = {
1746
1746
  }
1747
1747
  };
1748
1748
  function V402Checkout({
1749
- merchantId,
1749
+ checkoutId,
1750
1750
  headerInfo = {},
1751
1751
  isModal = false,
1752
1752
  onPaymentComplete,
@@ -1763,7 +1763,7 @@ function V402Checkout({
1763
1763
  supportedNetworks,
1764
1764
  isLoading: fetchingPaymentInfo,
1765
1765
  paymentInfo
1766
- } = usePaymentInfo(merchantId, endpoint, additionalParams);
1766
+ } = usePaymentInfo(checkoutId, endpoint, additionalParams);
1767
1767
  const targetNetwork = expectedNetwork || supportedNetworks[0];
1768
1768
  const { address, networkType, disconnect, ensureNetwork } = usePageNetwork(
1769
1769
  targetNetwork,
@@ -1808,7 +1808,7 @@ function V402Checkout({
1808
1808
  setError(null);
1809
1809
  setIsProcessing(true);
1810
1810
  try {
1811
- const response = await makePayment(networkType, merchantId, endpoint, additionalParams);
1811
+ const response = await makePayment(networkType, checkoutId, endpoint, additionalParams);
1812
1812
  const data = await response.json();
1813
1813
  setResult(data);
1814
1814
  notify.success("Payment Successful!", "Your payment has been processed successfully.");