Pix Immediate Charge to QR Code
A 4-step recipe with Efí Pay (Gerencianet). We can help you get access.
Recipe · 4 steps
Pix Immediate Charge to QR Code
with Efí Pay (Gerencianet) · Real-Time Payment Management
Create an immediate Pix charge and produce its scannable QR Code.
- Exchange the client_id and client_secret for an OAuth2 access token using the client_credentials grant required by the Pix API.
- Create an immediate Pix charge (cob) for the payer and amount, crediting the supplied Pix key. The server assigns a txid and a location id.
- Read the charge back by txid to confirm it was registered and is in the ATIVA status before exposing its QR Code to a payer.
- Generate the QR Code image payload for the location bound to the charge so the payer can scan it to pay.
What you'll need to have ready
- clientId: The OAuth2 client_id issued for the Efí Pay account.
- clientSecret: The OAuth2 client_secret issued for the Efí Pay account.
- amount: The charge amount in BRL as a decimal string (e.g. "123.45").
- pixKey: The receiving Pix key (chave) that the charge is credited to.
- payerCpf: The CPF of the payer (devedor) for the charge.
- payerName: The full name of the payer (devedor) for the charge.
- expiration: Seconds the charge stays valid (calendario.expiracao). Defaults to 3600.
For your developer
Arazzo workflow gerencianet:pix-charge-qrcode, 4 operations: contasAuthorize → pixCreateImmediateCharge → pixDetailCharge → pixGenerateQRCode. Specs on APIs.io.