coinley-checkout 1.0.7 → 1.0.8
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.
|
@@ -20986,7 +20986,7 @@ const PaymentStatus = ({
|
|
|
20986
20986
|
}
|
|
20987
20987
|
};
|
|
20988
20988
|
if (status === "success") {
|
|
20989
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-col items-center justify-center py-6", children: [
|
|
20989
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-col items-center justify-center py-6 px-4", children: [
|
|
20990
20990
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "mb-6", children: renderIcon() }),
|
|
20991
20991
|
/* @__PURE__ */ jsxRuntimeExports.jsx("h3", { className: `text-2xl font-bold mb-3 ${theme2 === "dark" ? "text-white" : "text-gray-900"}`, children: "Payment Successful!" }),
|
|
20992
20992
|
payment && selectedPaymentMethod && /* @__PURE__ */ jsxRuntimeExports.jsxs("p", { className: `text-center max-w-[235px] mb-6 ${theme2 === "dark" ? "text-gray-300" : "text-gray-600"}`, children: [
|
|
@@ -21005,7 +21005,7 @@ const PaymentStatus = ({
|
|
|
21005
21005
|
] }),
|
|
21006
21006
|
"Verifying on blockchain"
|
|
21007
21007
|
] }),
|
|
21008
|
-
transactionHash && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "w-full mb-6", children: [
|
|
21008
|
+
transactionHash && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "w-full mb-6 px-4", children: [
|
|
21009
21009
|
/* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: `text-sm font-medium mb-2 ${theme2 === "dark" ? "text-gray-300" : "text-gray-700"}`, children: "Transaction Hash:" }),
|
|
21010
21010
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
21011
21011
|
"div",
|
|
@@ -21175,7 +21175,28 @@ const PaymentMethods = ({ onSelect, selected, theme: theme2 = "light", supported
|
|
|
21175
21175
|
return PyusdIcon;
|
|
21176
21176
|
if (token.symbol === "USDP")
|
|
21177
21177
|
return UsdpIcon;
|
|
21178
|
-
|
|
21178
|
+
if (token.logo && token.logo !== "" && !token.logo.includes("placeholder")) {
|
|
21179
|
+
return token.logo;
|
|
21180
|
+
}
|
|
21181
|
+
const fallbackImages = {
|
|
21182
|
+
"USDT": "https://cryptologos.cc/logos/tether-usdt-logo.png",
|
|
21183
|
+
"USDC": "https://cryptologos.cc/logos/usd-coin-usdc-logo.png",
|
|
21184
|
+
"DAI": "https://cryptologos.cc/logos/multi-collateral-dai-dai-logo.png",
|
|
21185
|
+
"BUSD": "https://cryptologos.cc/logos/binance-usd-busd-logo.png",
|
|
21186
|
+
"USDP": "https://cryptologos.cc/logos/paxos-standard-pax-logo.png",
|
|
21187
|
+
"PYUSD": "https://s2.coinmarketcap.com/static/img/coins/64x64/28492.png",
|
|
21188
|
+
"FRAX": "https://cryptologos.cc/logos/frax-frax-logo.png",
|
|
21189
|
+
"USDJ": "https://s2.coinmarketcap.com/static/img/coins/64x64/5446.png",
|
|
21190
|
+
"TUSD": "https://cryptologos.cc/logos/trueusd-tusd-logo.png",
|
|
21191
|
+
"ETH": "https://cryptologos.cc/logos/ethereum-eth-logo.png",
|
|
21192
|
+
"BNB": "https://cryptologos.cc/logos/bnb-bnb-logo.png",
|
|
21193
|
+
"TRX": "https://cryptologos.cc/logos/tron-trx-logo.png",
|
|
21194
|
+
"ALGO": "https://cryptologos.cc/logos/algorand-algo-logo.png",
|
|
21195
|
+
"SOL": "https://cryptologos.cc/logos/solana-sol-logo.png",
|
|
21196
|
+
"AVAX": "https://cryptologos.cc/logos/avalanche-avax-logo.png",
|
|
21197
|
+
"MATIC": "https://cryptologos.cc/logos/polygon-matic-logo.png"
|
|
21198
|
+
};
|
|
21199
|
+
return fallbackImages[token.symbol] || `https://via.placeholder.com/64x64/6366f1/ffffff?text=${token.symbol}`;
|
|
21179
21200
|
};
|
|
21180
21201
|
const getPaymentMethodsForNetwork = (networkShortName) => {
|
|
21181
21202
|
if (!networkShortName)
|
|
@@ -21321,7 +21342,17 @@ const PaymentMethods = ({ onSelect, selected, theme: theme2 = "light", supported
|
|
|
21321
21342
|
style: { minHeight: "56px" },
|
|
21322
21343
|
children: [
|
|
21323
21344
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "flex items-center gap-3", children: selectedPaymentMethod ? /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
21324
|
-
typeof selectedPaymentMethod.method.logo === "function" ? /* @__PURE__ */ jsxRuntimeExports.jsx(selectedPaymentMethod.method.logo, { size: 32 }) : /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
21345
|
+
typeof selectedPaymentMethod.method.logo === "function" ? /* @__PURE__ */ jsxRuntimeExports.jsx(selectedPaymentMethod.method.logo, { size: 32 }) : /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
21346
|
+
"img",
|
|
21347
|
+
{
|
|
21348
|
+
src: selectedPaymentMethod.method.logo,
|
|
21349
|
+
alt: selectedPaymentMethod.method.name,
|
|
21350
|
+
className: "h-8 w-8 rounded-full",
|
|
21351
|
+
onError: (e) => {
|
|
21352
|
+
e.target.src = `https://via.placeholder.com/32x32/6366f1/ffffff?text=${selectedPaymentMethod.method.name}`;
|
|
21353
|
+
}
|
|
21354
|
+
}
|
|
21355
|
+
),
|
|
21325
21356
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: "text-base font-normal", children: [
|
|
21326
21357
|
selectedPaymentMethod.method.description,
|
|
21327
21358
|
" (",
|
|
@@ -21361,7 +21392,17 @@ const PaymentMethods = ({ onSelect, selected, theme: theme2 = "light", supported
|
|
|
21361
21392
|
},
|
|
21362
21393
|
style: { minHeight: "48px" },
|
|
21363
21394
|
children: [
|
|
21364
|
-
typeof tokenIcon === "function" ? /* @__PURE__ */ jsxRuntimeExports.jsx("tokenIcon", { size: 32 }) : /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
21395
|
+
typeof tokenIcon === "function" ? /* @__PURE__ */ jsxRuntimeExports.jsx("tokenIcon", { size: 32 }) : /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
21396
|
+
"img",
|
|
21397
|
+
{
|
|
21398
|
+
src: tokenIcon,
|
|
21399
|
+
alt: token.symbol,
|
|
21400
|
+
className: "h-8 w-8 rounded-full",
|
|
21401
|
+
onError: (e) => {
|
|
21402
|
+
e.target.src = `https://via.placeholder.com/32x32/6366f1/ffffff?text=${token.symbol}`;
|
|
21403
|
+
}
|
|
21404
|
+
}
|
|
21405
|
+
),
|
|
21365
21406
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("span", { children: [
|
|
21366
21407
|
token.name,
|
|
21367
21408
|
" (",
|