Crypto Payment Gateway Development for Platforms That Take Stablecoins
Protofire builds order matching, exception rules, refunds, seller payouts and ledger posting for platforms that take stablecoins. The build works around the processor or licensed entity that settles the funds. Our record is a Wirex card partnership, announced on 26 June 2026, and the Aragon Payroll app (2018 to 2019).

Reviewed by Luis Medeiros, Field CTO at ProtofireLast reviewed: November 2026
On this page
Work shipped for 60+ networks and 95+ protocols, including
Stablecoin payments leave each odd case to your platform
On stablecoin payments, your platform decides what happens when a payment does not match its order. For example, a customer paid a little less than the order total, and support is asking who decides what happens next. On a card, the network's rules answer that question. On a stablecoin payment, the transfer cannot be pulled back. The order remains open until your platform rules on it.
In crypto payment gateway development, Protofire builds the software that applies your rule. The software creates a payment request for each order, and a watcher matches each transfer to its order. The software also applies a rule for the odd cases and handles refunds, seller payouts and ledger entries. A processor or your own licensed entity receives and settles the funds. Your staff approve the refunds and payouts.
Who runs each part of a crypto payment
The payer's wallet sends the transfer onchain. The order, a refund and the merchant's balance are booked on the platform's side.
Payer's wallet
Checkout and order system
Custody or processor account
Processor or licensed entity
Payment request service
Watcher and matching
Refund and payout service
Merchant ledger
Stablecoin payments have no chargebacks, so disputes fall to you
Wrong amounts, late funds and refunds fall to the platform, because a stablecoin payment has no chargeback.Stripe lists dispute support for its stablecoin payments as "No". Stripe also says merchants "won't have disputes that turn into chargebacks" (Stripe).
On the Protocol Roundtable, Kostas Asimakopoulos described a stablecoin payment at a card terminal as a peer-to-peer transfer from consumer to merchant. He called the terminal "just the acceptance device" (Stablecoins Go Mainstream).
Stablecoin checkout has to handle four cases. A payer can send too little or too much. A payer can also pay after the quote expired, or pay on another network than the address expects.
BVNK offers four settings for a short payment, from crediting what arrived to an automatic refund. Stripe's deposit mode is a preview API, and it resolves none of the four cases by itself. In Stripe's words, "we can't automatically match or return the funds" (Stripe).
After a wrong-network payment, the funds are at the same address on the other chain. If the address is derived from a key, that key's holder can move the funds.
Without a rule for short, long, late and wrong-network payments, each odd payment becomes a support ticket and a hand-made transfer.
What crypto payment gateway development gives your finance and support teams
Order matching for each incoming transfer
Goods ship when a payment is matched and final. A payment that does not match has a named owner. Protofire connects your processor's checkout, checks webhook signatures and drops duplicate events. Alternatively, we build an address for each order and a chain watcher.
Short, long and late payments follow the merchant's rule
A setting that the merchant chose in advance decides whether a short payment is credited, held or refunded. The result is recorded against the order. Protofire builds the exception queue and a rule for each case.
A repeated refund request sends no second transfer
A refund is a new transfer. Each refund points to the original payment and has its own idempotency reference. The refund's destination is screened again through the vendor you contracted (compliance integration). Stripe warns that a payer who sent from "an exchange or omnibus wallet" might not recover a refund (Stripe). So each merchant's refund rule names the currency and who bears the network fee.
Seller payouts that allow for open refunds
A buyer's refund can arrive after the seller's payout. Protofire builds the seller ledger and a refund reserve that is held back from payouts. We build a second approver for a changed seller wallet and payout batches through your custody or a licensed rail (payout rails guide).
Merchant balances matched daily to the chain
Each day, merchant balances are matched against processor reports and against wallet balances at the last finalized block before a cut-off. Your finance team names the cut-off hour and its time zone. The difference between the quoted rate and the conversion rate is posted as its own line. Protofire writes the posting rules and the match. Our stablecoin reconciliation guide compares ways to run the match.
Card spend from your users' wallets
Card transactions and wallet balances agree in the ledger. Protofire connects a card program such as Wirex or Gnosis Pay to your wallet app. The work covers sign-up, card funding from the wallet balance and the booking of each card transaction.
Hosted checkout or direct acceptance: who holds the funds and the license
With a processor's hosted checkout, the processor holds the funds and the licenses.Direct acceptance moves both to you, or it moves the funds to each merchant's own wallet. MiCA lists custody of crypto-assets for clients and transfer services for clients as regulated services (Regulation (EU) 2023/1114 of 31 May 2023, Art. 3(1)(16)). Your counsel decides how MiCA applies to your design.
Where the payer sends
Who holds incoming funds
Processor's hosted checkout: The processor, until it settles the merchant
Direct onchain acceptance: Your wallets or custodian, or each merchant's own wallet
Settlement currency
Processor's hosted checkout: Stripe settles "in your Stripe balance in your local currency". BVNK credits the wallet currency the merchant set. A processor that offers a euro balance can settle into it
Direct onchain acceptance: The token that arrived, until a licensed counterparty converts it
Refunds
Processor's hosted checkout: The processor's refund flow, back to the paying wallet
Direct onchain acceptance: A new transfer from your wallet, under your approvals
License holder
Processor's hosted checkout: The processor, under its own licenses
Direct onchain acceptance: You, under your own authorization, for the custody or transfer you perform for merchants
What Protofire builds
Processor's hosted checkout: Checkout integration, webhook handling, exception rules and booking
Direct onchain acceptance: The same, plus address derivation, the chain watcher, sweeps and refund signing flows
CVC payment processors fall within the definition of a money transmitter and are not eligible for the payment processor exemption because they do not satisfy all the required conditions for the exemption.
Processors and platforms we integrate for acceptance
A firm that has already chosen BVNK, Bridge, Circle, Paxos or Triple-A can start from that platform's page.Coinbase Payments, Checkout.com, Gnosis Pay and Wirex are listed on our platforms page.
BVNK
Stablecoin payouts, wallets and virtual accounts by API; a Mastercard company since August 2026.
Left to you: Topping up the fiat wallet, Travel Rule data on every payment, approval rules, webhook dedupe, the payout ledger and the match against BVNK's ledger reports.
BVNK integrationBridge
Stripe's stablecoin API for transfers, virtual accounts and issuance.
Left to you: Taking each customer through Bridge's terms, KYC and rail endorsements, webhook and recall handling, returns your staff decide, and booking in your ledger.
Bridge integrationCircle
Dollar and euro stablecoins, plus a payments network.
Left to you: Accounts and ramps, payouts, treasury moves and reconciliation with your books.
Circle integrationPaxos
Dollar stablecoins from a US national trust bank, and USDG from Singapore and EU issuers.
Left to you: Memo IDs on funding wires, approvals for API calls, Travel Rule data on each saved address, the daily CSV match and, for EU CASPs, USDG wallet registration.
Paxos integrationTriple-A
Stablecoin checkout that settles merchants in local currency.
Left to you: The order rule for each payment status, the webhook receiver, refunds and payouts started under your own approvals, and matching Triple-A's settlement statements to your ledger.
Triple-A integrationOur payments record: a Wirex card partnership and the Aragon Payroll app
Protofire's payments record is a card partnership with Wirex, announced in 2026, and a DAO payroll app built in 2018 and 2019.We built the payroll app for payments in several tokens, which is the same job a payments build does.
A card partnership with Wirex
On 26 June 2026, Protofire announced a card partnership with Wirex on X, "to bring non-custodial card payments to blockchain projects". The announcement named two tracks: "deploying Wirex BaaS infrastructure onchain, and integrating Wirex card payment solutions with projects across the space" (Protofire on X). For a wallet that adds card spend, the announced scope matches the card program integration that Protofire builds.
A payroll app that paid in several tokens
In 2018 and 2019, Protofire built the Payroll dApp for Aragon's apps framework. The app let a DAO pre-authorize recurring payments in several tokens. We built its aragonOS contracts, a React front end and a subgraph. Aragon merged the UI milestones, titled "Payroll: UI Milestones 2-4 (Protofire)", on 14 May 2019. The case study describes the build. Aragon's apps repository is archived.
How a payment moves from quote to ledger
The payer only makes the transfer.Each other step runs on the platform's side or the processor's side.
- Step 1
A proposal that maps each payment state
The first phase of the proposal maps each payment state to a ledger entry. - Step 2
Checkout and webhook connection
The checkout converts an order's fiat price into a token amount at a quoted rate, and the quote has an expiry. Each webhook is checked, and each payment is fetched again before it is posted. An order keeps one state, however often the processor resends an event. - Step 3
Matching and exceptions
A transfer of the exact amount to the right address before the expiry closes the order. Goods ship once the transfer passes your finality threshold for that chain. If a reorganization drops the transfer before then, its order goes back to awaiting payment. Other transfers go to the exception queue under the merchant's rule. - Step 4
Booking, refunds and payouts
Each payment is posted once, under a key that fits the asset. The key is the processor's payment ID, or a transaction hash paired with the log index of a token transfer event. Protofire's code prepares refunds and payouts as transfers for your custody platform, Safe or processor account to sign. - Step 5
Daily match and handover
The daily match compares the ledger with processor reports and wallet balances. You own the repository, the posting rules, and the accounts and keys that sign.
How work with Protofire starts
Protofire's first questions are about your processor or custody platform and about your order and refund states.A month of settlement reports, sent under NDA and stripped of customer data, answers most of those questions.
- Proposal
- In writing, one business day after the discovery call: findings, a plan in phases and the first step we recommend.
- Price
- Fixed per phase when you commission it, against written acceptance criteria. Overruns inside them are ours to absorb, invoices follow delivered milestones, and you can stop at any phase boundary. Anything we operate after launch is priced in the proposal as its own recurring line, with the notice to end it.
- Ownership
- Code we write for you, contracts, the keys and credentials this work creates and the accounts your infrastructure runs in are yours by contract, within the license of any third-party software involved. Keys that a custody platform or a staking provider holds under its own key model stay with it under your contract; every other custody key stays with you or the custodian you appoint. Where the scope places something on servers we rent, it says what moves to you and when. An NDA is available from your first message, and we sign a data processing agreement (DPA) together with it.
- After launch
- Delivery closes with a hypercare window and a defect warranty, with their terms written into the proposal. A service we operate continues under its written scope until that scope ends.
- Access
- Read-only by default. A role that can start requests only if your written scope names one; never a signer, approver, administrator, key holder or recovery role on your contracts, wallets or custody platform. Services we build call each platform on credentials your staff issue and keep in your vault. Anything that approves or moves funds runs in your environment, and a scope under which we operate a service lists every write call it makes. Where the scope has us operate nodes, validators, monitors, explorers or indexers, it names the role and any key we hold on those servers, and in your own cloud account you can remove it.
- Licenses
- Protofire is an engineering firm and holds no financial or crypto-asset license; licensed activity stays with you and your providers.
How we work shows a worked proposal.
When a gateway build with Protofire does not fit
A gateway build does not fit in three cases.
- A hosted checkout already does the job. For example, a US business on Stripe can add the stablecoin method to its checkout and settle in its local currency (Stripe). Then the posting rules are the only work left.
- The model needs Protofire to hold funds or a license. Protofire holds no payment, e-money or crypto-asset license. Protofire issues no cards and moves no client funds. Your staff make KYC decisions and approve refunds. Merchant funds pass through a processor or an entity of yours that is authorized to hold them.
- You are building a different product. Cross-border payouts, treasury supplier payments and an AI agent as the payer have their own pages.
The build fits a platform whose orders, refunds and seller payouts must match its own books. Once that platform has chosen its processor or custody model, it is ready for a first proposal.
FAQ
What is crypto payment gateway development?
Who can build crypto payment acceptance for a marketplace or a payment firm?
Which stablecoins can a platform accept?
Can we connect on- and off-ramps from more than one provider?
Do card networks settle in stablecoins?
Can our users spend from their wallets with a card?
Who signs refunds and seller payouts after launch?
Get a proposal
Tell us what you are building. An engineer reads it, we have a short call, and the written proposal follows within one business day.
