> ## Documentation Index
> Fetch the complete documentation index at: https://developer.pagou.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Payments Examples

> Runnable payments examples per language: Pix + QR, vouchers, card via Payment Element, 3DS, refunds and pagination.

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 Element](/frontend/payment-element/overview) → `pgct_*` token → backend, continuing 3DS on
`next_action`; full and partial refunds; and listing transactions with cursor pagination.

**Guide:** [Payments Overview](/payments/overview) · [Accept Pix](/payments/pix/accept-payments) ·
[Vouchers](/payments/vouchers/accept-payments) · [Cards](/payments/cards/overview)
**API reference:** [Transactions](/api-reference/transactions/reference)
([create](/api-reference/transactions/create) · [list](/api-reference/transactions/list) ·
[get](/api-reference/transactions/get) · [refund](/api-reference/transactions/refund))

## Example code by language

| Language          | Directory                                                                                   | README                                                                                |
| ----------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
| TypeScript / Node | [`typescript/payments/`](https://github.com/PagouAi/examples/tree/main/typescript/payments) | [README](https://github.com/PagouAi/examples/blob/main/typescript/payments/README.md) |
| Python            | [`python/payments/`](https://github.com/PagouAi/examples/tree/main/python/payments)         | [README](https://github.com/PagouAi/examples/blob/main/python/payments/README.md)     |
| PHP               | [`php/payments/`](https://github.com/PagouAi/examples/tree/main/php/payments)               | [README](https://github.com/PagouAi/examples/blob/main/php/payments/README.md)        |
| Java              | [`java/payments/`](https://github.com/PagouAi/examples/tree/main/java/payments)             | [README](https://github.com/PagouAi/examples/blob/main/java/payments/README.md)       |
| C# / .NET         | [`dotnet/payments/`](https://github.com/PagouAi/examples/tree/main/dotnet/payments)         | [README](https://github.com/PagouAi/examples/blob/main/dotnet/payments/README.md)     |
| Go                | [`go/payments/`](https://github.com/PagouAi/examples/tree/main/go/payments)                 | [README](https://github.com/PagouAi/examples/blob/main/go/payments/README.md)         |
| Ruby              | [`ruby/payments/`](https://github.com/PagouAi/examples/tree/main/ruby/payments)             | [README](https://github.com/PagouAi/examples/blob/main/ruby/payments/README.md)       |

## Operations exercised

`postTransactions` · `getTransactions` · `getTransactionsById` · `putTransactionsById` ·
`putTransactionsByIdRefund`

<Note>
  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.
</Note>
