Skip to main content
Working code for the Payments flow: create a Pix charge and return pix.qr_code; retrieve and reconcile a transaction; voucher/boleto with asynchronous instructions; card via Payment Elementpgct_* token → backend, continuing 3DS on next_action; full and partial refunds; and listing transactions with cursor pagination. Guide: Payments Overview · Accept Pix · Vouchers · Cards API reference: Transactions (create · list · get · refund)

Example code by language

Operations exercised

postTransactions · getTransactions · getTransactionsById · putTransactionsById · putTransactionsByIdRefund
Card data never reaches your backend as a PAN or CVV. It is tokenized in the browser by the Payment Element into a pgct_* token, which the backend example then charges.