Pix is Brazil's instant payment system, built and run by the Banco Central do Brasil (BCB). The payer approves a transfer in their bank app, the money moves account to account in seconds, around the clock. In 2025 it handled almost 80 billion transactions worth over R$35 trillion (BCB).
For a merchant, Pix is a push payment. You don't hold a credential you can charge later: you show the customer a payment request, they pay it or they don't, and your PSP tells you which. You never connect to the BCB directly. A bank or payment institution that participates in Pix receives the money for you, and its API is your integration.
Static QR, Dynamic QR, and Copia e Cola
The BCB's Manual de Padroes para Iniciacao do Pix defines the QR types, and the difference matters more than it looks:
| Type | What's inside | Use it for |
|---|---|---|
| Static QR | Your Pix key (registered in the DICT directory), plus an optional amount, transaction ID and free text | A printed code at a counter, or a fixed-price donation |
| Dynamic QR | A URL pointing at your PSP's endpoint, which serves the amount, expiry and reference when the payer scans | Online checkout: one code per order |
| Pix Copia e Cola | The same payload as text, for the customer to paste into their bank app | Mobile checkout, where scanning the screen you're holding doesn't work |
Online, use dynamic codes. The URL is what lets your PSP attach a per-order transaction ID for reconciliation, expire the charge, and refuse a second payment. In 2025 dynamic QR initiated about 40% of all Pix transactions, against 8% for static QR, and the BCB reads that growth as retail adopting Pix (BCB).
The Pix API
"Pix API" means two things. The BCB publishes a standard API that participating PSPs implement: a /cob charge for immediate payment, which expires after 86,400 seconds (24 hours) unless you set calendario.expiracao, and a /cobv charge with a due date, which is Pix doing a boleto's job (BCB). If you integrate a Brazilian bank or PSP directly, that's the shape you'll see. If you go through a global processor, you get its API instead. On Stripe, a PaymentIntent returns the copy-paste string and QR images under next_action.pix_display_qr_code, and the code expires 4 hours after confirmation by default, configurable from 60 seconds to 14 days (Stripe).
Either way, the return to your site proves nothing. Fulfill on the server-side notification, and make that handler idempotent.
import stripe
from flask import Flask, request
app = Flask(__name__)
stripe.api_key = "sk_test_..."
ENDPOINT_SECRET = "whsec_..."
def create_pix_payment(order):
# Stripe recommends dynamic payment methods from the Dashboard; listing
# "pix" explicitly keeps the example readable.
return stripe.PaymentIntent.create(
amount=order.total_centavos, # BRL in centavos
currency="brl",
payment_method_types=["pix"],
payment_method_options={"pix": {"expires_after_seconds": 1800}},
metadata={"order_id": order.id},
idempotency_key="pix-create-" + order.id,
)
@app.post("/webhooks/stripe")
def stripe_webhook():
try:
event = stripe.Webhook.construct_event(
request.get_data(), request.headers.get("Stripe-Signature"), ENDPOINT_SECRET
)
except (ValueError, stripe.SignatureVerificationError):
return "", 400
obj = event.data.object
if event.type == "payment_intent.succeeded":
mark_paid(obj.metadata["order_id"], event_id=event.id) # idempotent on event.id
elif event.type == "payment_intent.payment_failed":
expire_order(obj.metadata["order_id"], event_id=event.id) # code expired unpaid
elif event.type == "charge.dispute.created":
# A MED return request. You can't contest it through Stripe.
record_med_claim(obj.charge, obj.amount, event_id=event.id)
return "", 200
What It Costs
Under the rule the BCB adopted in 2020, banks can't charge individuals to send Pix, but can charge legal entities to send and receive, and individuals receiving for a purchase (BCB, Voto 269/2020). So the price is whatever your PSP quotes. Two published ones:
| Merchant | Price | Source |
|---|---|---|
| Stripe account in Brazil | 1.19% | Stripe Brazil |
| Stripe account in the US | 2%, plus 1% when currency conversion is required | Stripe US |
Cross-border has two more lines. A Brazilian paying a business outside Brazil pays IOF tax, which Stripe currently lists at 3.5%, and you choose whether the customer pays it or you absorb it. Stripe also caps those customers at US$3,000 a day and US$10,000 a month per business, and requires the customer's CPF or CNPJ (Stripe).
Pix Automatico: Recurring Without a Card
Pix Automatico went live on 16 June 2025 (BCB). The customer authorizes a mandate once in their bank app, and later charges run against it. The payer can't be charged a fee for it, and your PSP sends each payment instruction between 2 and 10 days before the debit date, so the customer sees it coming (BCB FAQ). It's still small: almost 600 thousand transactions worth R$133.2 million in December 2025, more than double November's count (BCB).
On Stripe, Pix Automatico is for businesses outside Brazil only. Charges sit in processing through the pre-debit notice and can take up to 7 days to confirm with retries (Stripe).
MED: The Refund You Didn't Issue
Pix has no chargeback, and that's where most guides stop. It does have the MED (Mecanismo Especial de Devolucao), in operation since 2021: in proven cases of scams, fraud or crime, the payer's bank can block the funds in the receiving account and claw them back. Since October 2025 customers can start a claim from a button in their bank app, and from 2026 the BCB lets a claim follow the money past the first account it landed in (BCB).
For you, that means a settled Pix can come back. Stripe surfaces MED returns as disputes with a charge.dispute.created event, and you can't contest them or submit evidence: the partner's decision is final (Stripe). Ordinary refunds are yours to send, up to 90 days after the payment on Stripe.
Why Pix is infrastructure, not a product. From chapter 34.
The most interesting work is happening at the country level. India's UPI is the world's largest instant payment system by transaction count, at 20.7 billion transactions in October 2025 (NPCI). Brazil's PIX went from its November 2020 launch to 175 million users by May 2025 (BCB). Neither is really a payment product. They're national infrastructure.
The common pattern: a central bank or national body creates a shared rail that all banks must connect to, with standardized APIs and (often) zero transaction fees. This creates network effects that cards can't match.
Where Pix sits among the QR schemes, and who sets your fee. From chapter 31.
PIX (Brazil)
PIX went from launch in November 2020 to 175 million users by May 2025 (Banco Central do Brasil). It uses the EMV QR Code standard with CRC16 checksums. Individuals pay nothing, each bank sets its own fee for businesses (so negotiate yours), and settlement is 24/7 and instant. If you're entering Brazil, make PIX your primary payment method. It overtook debit and credit cards in 2022 to become the country's most-used payment method (FEBRABAN).
Who the Pix participant is (not you), and why every key traces to a CPF or CNPJ. Brazil is the middle of three countries. From chapter 41.
Licensing and KYC: Kenya, Brazil, and the Philippines
Start with the question the framework can't answer for you: are you the licensee, or a customer of one. In all three countries, a merchant that accepts payments through the operator's or a PSP's API is usually the customer. You need your own authorization when you hold customer funds, issue e-money, or move money between third parties. Chapter 26 covers the frameworks that sit above all of this. The details below are as the regulators published them at the time of writing, and none of it is legal advice.
Kenya. The Central Bank of Kenya authorizes payment service providers under the National Payment System Act 2011 and the 2014 Regulations made under it. The categories include e-money issuer and small e-money issuer, and customer funds sit in a trust account. Core capital is KSh 1 million for a small e-money issuer and KSh 20 million for a full one (CBK, National Payment System Regulations 2014). Safaricom holds that authorization for M-Pesa, so as a merchant you register for Lipa na M-Pesa with your business registration and KRA PIN, receive a shortcode, and integrate through the Daraja API.
Customer KYC happens before you ever see the customer. A wallet is opened at an agent against a Kenyan national ID or passport, and the agent records the ID number at cash-in and cash-out (Safaricom; IFC Mobile Money Toolkit). That doesn't remove your own AML monitoring on what you sell, but every phone number that pays you already belongs to someone who showed an ID.
Brazil. The Central Bank of Brazil regulates payment institutions under Law 12,865 of 2013, and PIX participation sits on top of that: institutions with more than 500,000 active customer accounts must join, others may. Each participant is direct, settling in the central bank's instant payment system, or indirect, settling through a direct participant, and a payment institution that isn't BCB-authorized can only be indirect (BCB, Pix participants). As a merchant you're neither: your PSP is the participant, it registers your key, creates your dynamic codes, and receives the credit you see as a webhook. KYC is anchored on the tax ID: every account and every PIX key belongs to a CPF or a CNPJ. Suspicious activity reports go to COAF, Brazil's financial intelligence unit, and customer data falls under the LGPD.
Philippines. The Bangko Sentral ng Pilipinas oversees payment systems under the National Payment Systems Act (RA 11127, 2018) and licenses e-money issuers separately. Circular 1166 (2023) rewrote the e-money rules: it removed the PHP 100,000 aggregate monthly load cap and let issuers set limits per customer tier from their own risk assessment. The same circular set minimum capital at PHP 200 million for large-scale issuers, defined by 12-month average inflows plus outflows of PHP 25 billion or more (BSP Circular 1166). GCash and Maya are the wallets, and their operators hold the e-money licenses, so you integrate through their merchant products or an acquirer, or you accept QR Ph and let InstaPay route the payment.
KYC follows Circular 1170 (2023): risk-based due diligence, electronic verification allowed, and the PhilSys national ID accepted as sufficient proof of identity on its own (BSP). Wallets are tiered, so a basic account carries lower limits than a fully verified one, and the Anti-Money Laundering Council is where suspicious transaction reports go.
Questions
What is a Pix payment?
Pix is Brazil's instant payment system, built and run by the Banco Central do Brasil. The payer approves a transfer in their bank app and the money moves account to account in seconds, around the clock. In 2025 it handled almost 80 billion transactions.
What is the difference between a static and a dynamic Pix QR code?
A static QR carries your Pix key, plus an optional amount, transaction ID and free text. A dynamic QR carries a URL pointing at your PSP's endpoint, which serves the amount, expiry and reference when the payer scans. Online checkout should use a dynamic code per order. Pix Copia e Cola is the same payload as text for the customer to paste.
How much does Stripe charge for Pix?
Stripe lists 1.19% for a Stripe account in Brazil, and 2% plus 1% when currency conversion is required for a Stripe account in the US. For cross-border payments, Brazilian customers also pay IOF tax, currently listed by Stripe at 3.5%, unless you choose to absorb it.
Does Pix support recurring payments?
Yes, through Pix Automatico, which went live on 16 June 2025. The customer authorizes a mandate once in their bank app, the payer can't be charged a fee, and each payment instruction goes out between 2 and 10 days before the debit date. On Stripe it's available to businesses outside Brazil only.
Can a Pix payment be reversed?
Pix has no chargeback, but the MED lets the payer's bank block and claw back funds in proven cases of scams, fraud or crime. Stripe surfaces these as disputes you can't contest. Ordinary refunds are new transfers you send, up to 90 days after the payment on Stripe.