Cielo - Pagamento Pix (QRCode)

Cria um pagamento PIX com QRCode na Cielo (Integração Cielo 2.0)

Cielo - Pagamento Pix (QRCode)

AI-generated

Summary

Create a Pix payment with a QR code in the Cielo payment system by providing order and customer details along with payment amount and expiration.

Inputs

  • Merchant Order ID (required) — Unique identifier for the merchant's order.
  • Valor (em reais ou centavos) (required) — Payment amount in Brazilian reais or centavos. Amounts less than 1000 are treated as reais and converted to centavos internally.
  • Expiração (minutos) (required) — Expiration time for the payment request in minutes from now.
  • Nome do Cliente (required) — Full name of the customer making the payment.
  • Documento (CPF ou CNPJ) (required) — Customer's tax identification number, either CPF or CNPJ.
  • Tipo de Documento — Type of the customer's identification document, either CPF or CNPJ. Defaults to CPF.

Output shape

A single JSON object array containing the payment details including paymentId, status, QR code string, base64-encoded QR code image, expiration date, amount, and raw API response.

The amount in the response is in centavos. Expiration date is ISO formatted. Errors from the Cielo API or integration failures are thrown as node operation errors with status codes and messages where applicable.

Discussion