Use configured CoinPay USDC chain

This commit is contained in:
Anthony Ettinger 2026-06-06 18:51:46 +00:00
parent a0314eb774
commit 1a87c2f26d
3 changed files with 3 additions and 3 deletions

View file

@ -103,7 +103,7 @@ async function handleHireUsCoinPayCheckout(request, response) {
const apiKey = process.env.COINPAY_API_KEY;
const merchantId = process.env.COINPAY_MERCHANT_ID;
const apiUrl = process.env.COINPAY_API_URL || "https://coinpayportal.com";
const blockchain = process.env.COINPAY_HIRE_US_BLOCKCHAIN || "USDC_BASE";
const blockchain = process.env.COINPAY_HIRE_US_BLOCKCHAIN || "USDC_POL";
if (!apiKey) {
sendJson(response, 503, { success: false, error: "CoinPay checkout is not configured" });

View file

@ -437,7 +437,7 @@ function buildCoinPayResult(payment: {
const details = document.createElement("dl");
details.append(
buildDetail("Amount", `$${payment.amount_usd ?? 500} / ${payment.crypto_amount ?? "quoted at checkout"} ${payment.currency ?? "USDC_BASE"}`),
buildDetail("Amount", `$${payment.amount_usd ?? 500} / ${payment.crypto_amount ?? "quoted at checkout"} ${payment.currency ?? "USDC_POL"}`),
buildDetail("Address", payment.address ?? "Open CoinPay to complete payment", true),
buildDetail("Payment ID", payment.id ?? "pending", true)
);