Guides
Introduction
Mimicr's Pay4Fun simulator answers on the same paths as the GO 2.0 gateway, so you can build Pix In and Pix Out without depending on Pay4Fun's sandbox.
The simulator reproduces GO 2.0, Pay4Fun's Pix payment gateway: authentication with clientId and clientSecret, deposits (Pay In) by dynamic QR Code, static QR Code and Pix ITP, payments (Pay Out) by key, bank data, copy and paste and session, account, configurations, profile, invoices, currencies, Pix utilities and the result webhooks. It answers on https://pay4fun.mimicr.dev with the same paths, bodies, statuses and error shapes described in the GO 2.0 integration documentation.
To use it, swap the host. The rest of your integration stays the same.
Host swap
| Pay4Fun | Mimicr |
|---|---|
https://go.dev.pay4fun.com/auth | https://pay4fun.mimicr.dev/auth |
https://go.dev.pay4fun.com/deposit/api/v1/... | https://pay4fun.mimicr.dev/deposit/api/v1/... |
https://go.dev.pay4fun.com/payment/api/v1/... | https://pay4fun.mimicr.dev/payment/api/v1/... |
https://go.dev.pay4fun.com/account/api/v1/... | https://pay4fun.mimicr.dev/account/api/v1/... |
https://go.dev.pay4fun.com/configurations/api/v1/... | https://pay4fun.mimicr.dev/configurations/api/v1/... |
https://go.dev.pay4fun.com/profile/api/v1/... | https://pay4fun.mimicr.dev/profile/api/v1/... |
https://go.dev.pay4fun.com/billings/api/v1/... | https://pay4fun.mimicr.dev/billings/api/v1/... |
https://go.dev.pay4fun.com/currencies/api/v1/... | https://pay4fun.mimicr.dev/currencies/api/v1/... |
https://go.dev.pay4fun.com/pix/api/v1/... | https://pay4fun.mimicr.dev/pix/api/v1/... |
The clientId and clientSecret are your Mimicr sandbox's, not the ones Pay4Fun issues at onboarding.
What the simulator covers
POST /authwith a Keycloak-style RS256 JWT, valid for 300 seconds.- Deposit intents with one or more methods (
Pix-QrDynamic,Pix-QrStatic,Pix-ITP),matchingStrategy,PayerandAccountOriginpre-validations,Screening, sessions, update, cancellation, refund, errors and PDF or ZIP receipts. - Payment intents with
Pix-Key,Pix-BankData,Pix-CopyPasteandPix-Session, asynchronous processing, retries, validation and send errors and the receipt. transactionalandowneraccounts: data, balance, statements of up to 30 days, entry receipts, Pix keys and limits with increase requests.- Configurations (flags, proxies, per-transaction limits, methods), profile, contacts, credential reset, invoices with the fees, the currency catalog with conversion, QR Code decoding and Pix participants.
- Unsigned deposit and payment webhooks, with up to 5 attempts.
What Mimicr adds
The GO 2.0 documentation has no test payers and no way to simulate a payment in the sandbox. In Mimicr you drive the other side: the payer pays the QR Code on a hosted page or through an action, the bank refuses, the screening fails, the QR expires, the refund completes, the SPI settles or refuses a payment, the Pix key is confirmed and the limit review decides. Payments move on their own, with an amount table to force refusals. All of this is in the console, the control API (https://api.mimicr.dev), the CLI (npx mimicr) and the MCP server.
Where Pay4Fun's documentation is silent, Mimicr makes its own decision and the guides flag it with "In Mimicr, ...". That is not a promise about Pay4Fun's production behavior.
Where to start
- Quickstart: from activation to the first paid deposit with its webhook.
- Authentication and Environment.
- Sandbox testing: test payers, the amount table and how to force each outcome.
- Journeys: Pix In, ITP, Pix Out, Pix keys, contacts and limits.
- Webhooks and retries.
- Sandbox control: every route and action of the control API.
- API reference: start with Get a token, Create a deposit intent and Create a payment.