---
title: "Introducing the commerce payments protocol"
description: "The Commerce Payments Protocol, built by Coinbase and Shopify on Base, brings card-style authorize-and-capture flows onchain using an immutable escrow smart contract between payer and receiver."
url: "https://swe.quest/articles/introducing-the-commerce-payments-protocol-364920964bfb2054"
canonical: "https://shopify.engineering/commerce-payments-protocol"
source: "Shopify Engineering"
published: "2025-06-12"
difficulty: "medium"
kind: "Announcement"
reading_minutes: 10
tags: ["payments","system-design","security"]
---

# Introducing the commerce payments protocol

A post on [Shopify Engineering](https://swe.quest/sources/shopify.md), published 2025-06-12, 10 min read, Announcement. Original: [https://shopify.engineering/commerce-payments-protocol](https://shopify.engineering/commerce-payments-protocol)

## Summary

The Commerce Payments Protocol, built by Coinbase and Shopify on Base, brings card-style authorize-and-capture flows onchain using an immutable escrow smart contract between payer and receiver. Operators submit transactions and pay gas on behalf of merchants but are constrained: payers sign a hash of the payment terms (receiver, token, max amount, expiries, operator), signatures cannot be replayed, payers can reclaim funds after authorization expiry, and each operator's funds sit in separate buckets. Six operations (authorize, capture, charge, void, reclaim, refund) cover the payment lifecycle, with partial captures and ERC-3009 signature-based token collection enabling gasless USDC payments. The protocol powers Shopify's USDC payment method and is open for extension via operator, receiver and token-collector contracts.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Payments & fintech](https://swe.quest/tags/payments.md) (Domains)
- [System design](https://swe.quest/tags/system-design.md) (Architecture & design)
- [Security](https://swe.quest/tags/security.md) (Security)

## Prerequisites

- smart contracts basics
- card authorize and capture flow
- digital signatures

## Keywords

Commerce Payments Protocol, Base, USDC, ERC-3009, Coinbase, Shopify Payments

## Related posts

- [Building the Universal Commerce Protocol](https://swe.quest/articles/building-the-universal-commerce-protocol-1c31a0f463d3eeef.md): Shopify Engineering · 2026-01-11 · Medium · 6 min read · API design, E-commerce, AI agents, Payments & fintech
  Universal Commerce Protocol (UCP), co-developed by Shopify and Google, is an open standard for AI agents to discover merchant capabilities and complete transactions.
- [Agents that can pay: building Restock with Stripe's Link and Managed Deep Agents](https://swe.quest/articles/agents-that-can-pay-building-restock-with-stripe-s-link-and-managed-deep-agents-d2c567a5926dc321.md): LangChain · 2026-10-08 · Medium · 6 min read · AI agents, Payments & fintech, Identity & auth, API design
  Restock is a sample Slack office-supply agent on Managed Deep Agents that makes real purchases.
- [Navigating Recurring Payments in India: A Backend Perspective](https://swe.quest/articles/navigating-recurring-payments-in-india-a-backend-perspective-5fb6075f589a16a0.md): Shopify Engineering · 2022-06-29 · Medium · 15 min read · Payments & fintech, API design, Resilience, System design
  Shopify adapted its internal payment service to India's 2021 RBI recurring-payment rules by working with a local provider supporting cards and UPI.
- [Stripe’s payments APIs: The first 10 years](https://swe.quest/articles/stripe-s-payments-apis-the-first-10-years-962fcdaff95a6285.md): Stripe · 2020-12-15 · Medium · 24 min read · API design, Payments & fintech, System design
  Stripe's payments API evolved from a card-centric Token-and-Charge model, famous as "seven lines of code", through ad hoc extensions for ACH debit (a pending state) and Bitcoin (a separate BitcoinReceiver), to the unified Sources API.
- [Beyond rate limits: scaling access to Codex and Sora](https://swe.quest/articles/beyond-rate-limits-scaling-access-to-codex-and-sora-f19f4998580ba788.md): OpenAI · 2026-02-13 · Medium · 6 min read · Payments & fintech, System design, Consistency models, Event-driven architecture, Distributed systems
  OpenAI replaced hard rate-limit stops for Codex and Sora with a real-time access engine that treats rate limits, free tiers, credits, promotions and enterprise entitlements as layers in a single decision waterfall evaluated per request.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
