MercanPay Blog
Blog

Integration

Integration articles on the MercanPay blog: guides on accepting crypto payments with USDT and TRX.

Integration

Check Invoice Status via API: Polling Alongside Webhooks

Checking invoice status through the API is the simplest way to back up your webhooks with a safety net. With MercanPay you can use GET /v1/invoices/:id and GET /v1/invoices/by-order/:order_id to learn the current state of an invoice whenever you need it. This

November 19, 20264 min read
Integration

Laravel Crypto Payment Integration: Accept USDT and TRX

A Laravel crypto payment integration comes together in a handful of files with the official mercanpay/mercanpay-php library. You bind the client in the service container, create a USD-priced invoice at checkout, redirect the customer to the hosted payment page

November 14, 20268 min read
Integration

Webhook Retries and Idempotent Handling for Crypto Payments

Webhook retries make sure no payment notification is lost when your server is briefly unreachable. The trade-off is that the same event can reach you more than once. This guide explains when and how often MercanPay retries webhooks, how to process repeated eve

November 11, 20266 min read
Integration

WooCommerce Crypto Payments: Add USDT and TRX with PHP

WooCommerce crypto payments are a common request from WordPress store owners. The easiest route is our ready-made plugin: download the MercanPay WooCommerce plugin for free and install it from your WordPress dashboard in a few minutes. If you want full control

November 8, 20267 min read
Integration

Idempotent Invoices with order_id: Match Orders, Avoid Duplicates

Idempotent invoice creation is the quiet foundation of every reliable crypto checkout. When a payment lands you need to know exactly which order it closes, a retry after a network error must never open a second invoice, and your books have to match at the end

November 5, 20266 min read
Integration

Node.js Crypto Payment API Integration with Express

A Node.js crypto payment API integration doesn't need an extra package. The MercanPay REST API speaks plain JSON, and the built-in fetch in Node 18+ is all you need. This guide walks through an Express app that creates an invoice, redirects the customer to the

November 1, 20267 min read
Integration

How to Verify Webhook Signatures with HMAC-SHA256

To verify a webhook signature is to prove that a payment notification really came from your payment provider and wasn't altered on the way. Without that check, anyone can send your endpoint a fake "payment received" request. This guide explains how HMAC-SHA256

September 30, 20265 min read
Integration

PHP Crypto Payment Integration: Accept USDT and TRX

A PHP crypto payment integration takes only a few files with the official mercanpay/mercanpay-php library. You create an invoice at checkout, redirect the customer to the hosted payment page, and fulfil the order when a signed webhook arrives. This guide wires

September 30, 20266 min read
Integration

Python Crypto Payment Integration with Flask and Django

A Python crypto payment integration takes just a few lines with the official mercanpay package. You create an invoice at checkout, redirect the customer to the hosted payment page, and confirm the order from a signed webhook. This guide connects USDT and TRX (

September 30, 20265 min read

Start accepting crypto payments in minutes

Accept USDT and TRX (TRC20). Fees from 0.4%, a hosted payment page, API and webhooks.