PagBrasil
Connect your PagBrasil account to Altruon to take Pix Automático and credit card payments in Brazil, with its credentials and IPN URL.
Connect your PagBrasil account to take Pix Automático and credit card payments in Brazil through Altruon, on your own PagBrasil contract.

- Payment methods
- Pix Automático and credit cards, in Brazil
- What you need
- Secret phrase, token, OAuth client ID and OAuth client secret
- Webhook
- Manual. You paste the Altruon webhook URL into the IPN URL field in PagBrasil.
- Trials
- Credit cards and Pix. See Trials.
- Good to know
- Your PagBrasil point of contact provides the OAuth client ID and secret. PagBrasil enforces the OAuth flow, so both are required.
Before you start
- Altruon backoffice accessYou can sign in to the environment you are connecting. See Sandbox and environments.
- A PagBrasil accountYour own account and contract, with access to Account > Settings in the PagBrasil backoffice.
- Raw card data allowed, if you use the Altruon VaultWith the Altruon Vault, Altruon sends the card number in the request to PagBrasil. The API credentials you connect must be allowed to send raw card data. This applies to credit card payments. If you are not sure, confirm with your point of contact at PagBrasil.
- OAuth credentials from PagBrasilAsk your PagBrasil point of contact for the
OauthClientIdand theOauthClientSecret.
Get your PagBrasil credentials
You need four values, from two places.
| Credential | Where you get it |
|---|---|
Secret (the secret phrase) | PagBrasil backoffice, Account > Settings |
Token | PagBrasil backoffice, Account > Settings |
OauthClientId | Your PagBrasil point of contact |
OauthClientSecret | Your PagBrasil point of contact |
PagBrasil enforces an OAuth flow, so the two OAuth values are required.
Connect PagBrasil in Altruon
- Sign in to Altruon and go to Settings > Payment Gateways.
- Click + Add Integration and select PagBrasil.
- Enter Secret (the secret phrase), Token, OauthClientId and OauthClientSecret.
- Click Add Integration.
If the connection succeeds, the PagBrasil integration is marked Active.

Set up the webhook
Altruon needs a webhook from PagBrasil to receive payment updates. PagBrasil calls it an IPN.
-
In Altruon, go to Settings > Payment Gateways and click View Integration on PagBrasil.
-
Copy the Webhook Endpoint URL.

Altruon: Integration Details for PagBrasil -
In the PagBrasil backoffice, go to Account > Settings.
-
Paste the URL into the IPN URL field.
-
Click Update.

PagBrasil: Account > Settings, with the Altruon endpoint as IPN URL
Add a routing entry
A routing entry sends one payment method in one currency to PagBrasil.
- Go to Settings > Payment Gateways and open the Routing tab.
- Click + Add entry.
- Select the Payment Method (card or Pix), the Currency, and PagBrasil as the Payment Gateway.
- Click Add Entry.
Add one entry for each method you process with PagBrasil.
Test the connection
- Open Settings > Payment Gateways. PagBrasil is listed as Active.
- With a billing platform connected, take a payment in sandbox with a method you routed. See Testing.
- Check the result: the transaction is recorded in Altruon with the PagBrasil transaction ID, the subscription exists on your billing platform, and its invoice is marked paid.
Notes and limits
- Brazil only. PagBrasil processes Pix Automático and credit cards in Brazil.
- Credit cards. The card connection covers credit cards.
- Pix trials are consent only. In a trial, the shopper gives the Pix consent at checkout and nothing is charged that day. The first debit is scheduled from the end of the trial.
- Card trials. A card trial saves the card with a zero-amount setup and charges it when the trial ends.
- Pre-debit notices and retries. A pre-debit notice is sent before each Pix Automático debit. Pix retries follow a fixed schedule: see Retries and dunning.