Guides
Getting started

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

Pay4FunMimicr
https://go.dev.pay4fun.com/authhttps://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 /auth with a Keycloak-style RS256 JWT, valid for 300 seconds.
  • Deposit intents with one or more methods (Pix-QrDynamic, Pix-QrStatic, Pix-ITP), matchingStrategy, Payer and AccountOrigin pre-validations, Screening, sessions, update, cancellation, refund, errors and PDF or ZIP receipts.
  • Payment intents with Pix-Key, Pix-BankData, Pix-CopyPaste and Pix-Session, asynchronous processing, retries, validation and send errors and the receipt.
  • transactional and owner accounts: 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