Evaluate the currently available product before comparing its API, eligibility and costs. Coinbase's official transition notice states that the legacy Commerce portal and charge-creation service became inaccessible after March 31, 2026; Coinbase Business is a separate product with its own eligibility and integration requirements. For BitPay, NOWPayments or another candidate, verify current merchant availability, asset/network support, settlement options and endpoint documentation for your own account. A historical Commerce integration should not be presented as a current new-project recommendation.
Architectural Overview: Payment Gateways vs. Direct RPC Operations
Integrating digital asset payments requires engineering teams to balance custody, operational overhead, and settlement latency. Building directly against blockchain nodes requires maintaining nodes or private remote procedure call (RPC) access, indexing transactions across multiple chains, handling chain reorgs, and managing key infrastructure. For example, on the Solana network, transactions observed at an unfinalized commitment level can roll back, requiring clients to verify that transactions reach the finalized commitment state before releasing goods, as outlined in the Solana RPC documentation.
Cryptocurrency payment gateways abstract lower-level blockchain interactions behind HTTP REST interfaces and event-driven notifications. Gateways handle invoice generation, dynamic exchange rate locking, address assignment, and transaction monitoring across diverse networks. However, using a gateway introduces third-party dependency, external API availability risks, and specific custody or settlement terms that require verification per provider account.
Gateway Evaluation Matrix
Engineers evaluating crypto payment infrastructure must inspect technical architecture, settlement models, fee tiers, and operational requirements. The following table highlights core architectural characteristics across evaluated providers.
| Provider or product | Verified evidence in this review | What the merchant must confirm |
|---|---|---|
| Coinbase Business | Coinbase’s transition notice says the legacy Commerce portal and charge-creation service became inaccessible after March 31, 2026. | Business eligibility and its actual current integration are separate; do not reuse an assumed Commerce contract or pricing model. |
| BitPay merchant acceptance | Published monthly processed-volume tiers are below US$500,000: 2% + US$0.25; US$500,000–999,999: 1.5% + US$0.25; US$1,000,000 and above: 1% + US$0.25, with higher fees for high-risk merchants. | Verify account eligibility, supported assets, SDK/API version, custody, conversion and bank-payout terms. Published processing pricing is not the all-in cost. |
| NOWPayments | A current public pricing page is available for comparing the selected service’s charges. | Verify the actual product’s custody, asset/network, conversion, fiat-partner and recovery contracts; no universal routing or bank-settlement capability is assumed. |
| Card-data scope | PCI DSS applicability follows the actual cardholder-data environment and systems that can affect its security. | Assess the implemented flow; a crypto label alone does not establish that every connected system is outside scope. |
Developer Integration Lifecycle: Invoices, Callbacks, and State Replay
Integrating a crypto payment API follows a standardized request-response lifecycle. Systems must handle network latency, unconfirmed blockchain transactions, and duplicate webhook events gracefully.
- Invoice Creation: The merchant server initiates a
POSTrequest containing the order amount, currency denominator, and expiration window. The API returns a distinct payment identifier, designated deposit address (or payment URI), and calculated token quantity. - Client Presentation: The client application presents the payment address and QR code to the customer. For address-based schemes, payment URIs must define specific parameters (e.g., token mint and recipient address) rather than bare public keys.
- Payment Monitoring: The provider monitors the relevant network for transactions directed to the assigned address or invoice identifier.
- Asynchronous Notification: Upon observing on-chain activity, the provider emits HTTP webhook events representing state transitions (e.g.,
detected,confirmed,completed).
Webhook Authentication and Idempotent Intake
Never rely on transport-layer HTTP status codes alone to prove transaction completion or business logic durability. Webhooks must be verified using the provider's documented authentication mechanism before downstream business execution.
// GitHub webhook delivery verification only. Other providers use different schemes.
const crypto = require('node:crypto');
function verifyGitHubWebhook(rawBody, signatureHeader, webhookSecret) {
if (!Buffer.isBuffer(rawBody) || typeof signatureHeader !== 'string'
|| !/^sha256=[0-9a-f]{64}$/i.test(signatureHeader)
|| typeof webhookSecret !== 'string' || !webhookSecret) return false;
const expected = crypto.createHmac('sha256', webhookSecret).update(rawBody).digest();
const received = Buffer.from(signatureHeader.slice(7), 'hex');
return crypto.timingSafeEqual(received, expected);
}As documented in GitHub's guide on validating webhook deliveries, verify signatures against the unmodified raw request body. Headers such as delivery GUIDs serve as correlation identifiers and are not signed directly by payload HMACs.
Furthermore, providers deliver webhooks with at-least-once semantics. For instance, Stripe webhooks can retry in live mode for up to 3 days with exponential backoff (Stripe Webhook Documentation). Your intake endpoint should record the inbound event identifier within a durable database transaction before returning a 200 OK response, executing downstream order fulfillment asynchronously.
Settlement Models and Asset Volatility Realities
Merchant acceptance strategies diverge fundamentally on how settlement is managed:
- Direct Asset Retention: Funds settle into merchant-controlled wallets in the paid token (e.g., BTC, ETH). While this avoids intermediary conversion cuts, merchants bear local price volatility and internal treasury management obligations. Digital assets are treated as property by the IRS, requiring basis and fair-market-value accounting on disposals and receipts (IRS Digital Asset Guidelines).
- Automatic conversion and fiat settlement: verify the actual provider's executable quote, expiry, fees and payout agreement. Prompt conversion can shorten market exposure but does not eliminate conversion failure, delayed payout, refund-price or counterparty risks.
- Stablecoin Settlement: Settling in USD-pegged stablecoins like USDC provides digital asset settlement without direct fiat wire infrastructure. However, stablecoins carry specific reserve and operational risks; market peg deviations or network-level disruptions can still occur (Circle USDC Risk Factors).
Technical Recovery and Edge-Case Handling
Crypto checkout integrations must account for operational failure modes unique to decentralized settlement:
- Underpayments: A customer sends insufficient funds to cover the quoted token amount or fails to account for network transaction fees. Gateways mark the invoice as underpaid; your system must support customer top-ups or manual reconciliation workflows.
- Late Confirmations: Network congestion can delay transaction confirmation past the invoice expiration window. Systems must handle delayed settlement webhooks without double-crediting orders.
- Database Locks and Outbox Dispatch: When updating order balances upon receiving confirmed webhooks, use transactional row-level database locking (such as SELECT ... FOR UPDATE in PostgreSQL) within your local business-effect transaction to prevent concurrent workers from processing duplicate events simultaneously, recording the inbound event ID atomically before marking processing complete (PostgreSQL Locking Documentation).
Integration Acceptance Checklist
Before moving any cryptocurrency payment gateway integration into production, confirm each of the following criteria:
- [ ] Provider endpoints correspond to actively maintained APIs (e.g., Coinbase Business confirmed; legacy Coinbase Commerce endpoints fully removed).
- [ ] Merchant agreement, jurisdiction eligibility, and volume pricing terms are documented and verified.
- [ ] Webhook endpoints validate raw cryptographic signatures before parsing and persisting payloads.
- [ ] Inbound webhook handling is idempotent, persisting processed transaction IDs in durable storage before triggering order fulfillment.
- [ ] Accounting systems accurately track transaction timestamps, fair market value, and network fees for reconciliation and tax compliance.
- [ ] Customer-facing error states for underpayment, overpayment, and transaction expiration are thoroughly tested in a staging or testnet environment.
The practical details
Frequently asked questions
Can I build a new integration using Coinbase Commerce?
No. Coinbase's official transition notice states that the legacy Commerce portal and charge-creation service became inaccessible after March 31, 2026. New projects should evaluate Coinbase Business or alternative gateways such as BitPay and NOWPayments.
How are BitPay merchant processing fees structured?
BitPay's published acceptance pricing lists volume tiers starting at 2% + 25¢ for monthly processing under $500,000, 1.5% + 25¢ for $500,000 to $999,999, and 1% + 25¢ for $1,000,000 or greater, with distinct terms for higher-risk classifications.
Does receiving a 200 OK from a webhook handler guarantee safe payment processing?
No. Returning an HTTP 200 status only acknowledges HTTP receipt to the sending gateway. The receiver must verify the raw signature, record the event ID in durable storage to prevent duplicate execution, and process fulfillment logic reliably.
Does settling payments in USDC eliminate currency and financial risk?
No. While USDC references USD, its value depends on the underlying reserves and operational structure. Holding or receiving stablecoins entails reserve, regulatory, operational, and network risks, as documented by Circle.
Do cryptocurrency transactions eliminate chargebacks and payment disputes entirely?
While direct on-chain transactions are irreversible, they do not eliminate merchant dispute risks, refund obligations under applicable consumer protection regulations, or off-chain customer service disputes.
Further reference
Sources & references
Explore the original documentation and references behind this story.
