Skip to main content

MuPag Docs

Payments, subscriptions and splits in one clear integration.

Operational APIs and guides to leave QA with charges, webhooks and production validated.

MuPag mascot holding a coin

QA integration

Create your first charge securely.​

Choose your SDK and create a test charge on your backend.

Installationnpm install mupag-sdk@0.2.0
import { MuPag } from 'mupag-sdk';

const mupag = new MuPag({
apiKey: process.env.MUPAG_API_KEY,
env: 'test',
});

const charge = await mupag.charges.create({
amount_cents: 1290,
payment_method: 'pix',
customer: {
name: 'Ana Silva',
email: 'ana@example.com',
tax_id: '12345678909',
},
}, { idempotencyKey: 'order_123_charge_1' });

console.log(charge.charge_id);
mupag / support

How can we help?

Quick answers, AI and our team.

Frequently asked questions

How do I start integrating?

Follow the quickstart, configure the QA environment and create your first test charge.

Read documentation
My PIX payment is pending. What now?

Confirmation is asynchronous. Check the charge status and webhook events before fulfilling the order.

Read documentation
How do I receive payment notifications?

Register a webhook endpoint, verify its signature and handle duplicate events safely.

Read documentation
How do subscriptions work?

Read the subscriptions guide to configure recurring billing and follow the charge lifecycle.

Read documentation
Where can I find authentication help?

See how to use environment credentials in the documentation. Never share your key in chat.

Read documentation