MuPag Docs
Payments, subscriptions and splits in one clear integration.
Operational APIs and guides to leave QA with charges, webhooks and production validated.

From key to reliable QA
Your integration path, with no hidden steps.
What do you want to build?
Start with your product flow.
Accept PIXCharges, QR Code and real-time confirmation.Create checkoutSecure sessions for PIX payments.Bill subscriptionsPlans and recurring lifecycle.Organize the catalogProducts, prices and coupons in one flow.Integrate affiliates and splitsCommissions, revenue splits and payouts.Receive webhooksAuthenticated events and resilient processing.
QA integration
Create your first charge securely.
Choose your SDK and create a test charge on your backend.
Installation
npm install mupag-sdk@0.2.0import { 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);