Connect PagBank to Nevian

Time needed: about 10 minutesLast updated:

Connect PagBank so sales and payment changes reach Nevian and can be matched to the visit that brought the buyer.

What you need

Availability. This connection is not available in this version of the panel yet. Use this guide to prepare the account settings; continue only when its named integration and credential fields appear in your workspace. Do not send its events to Custom or another provider URL.

  • A PagBank account with permission to configure notifications.
  • An active Nevian plan and an owner, admin or member role. Viewers cannot connect integrations.
  • Keep the checkout and Nevian tabs open side by side.

Steps

  1. In Nevian, open Integrations → Add integration (Connect provider in an empty workspace), choose PagBank and click Next with the platform open in another tab.

    Drawing: Connect PagBank. 1 · Open platform: Have your account open in another tab; 2 · Copy the URL: Next creates your private connection URL
  2. Copy the complete Webhook URL. Keep it private and leave this window open while you configure PagBank.

    Drawing: Connect PagBank. Webhook URL: https://track.example.com/wh/pagbank/••••••••; PagBank API token: Required account fields are saved with Next
  3. On the PagBank account website, open Vendas → Integrações → Gerar token. The token and the account email are required in Nevian when this connection becomes available.

    Drawing: PagBank · webhook configuration. Vendas: Integrações; Token: Keep in Nevian integration settings; Account email: The email of the PagBank account
  4. For Orders API requests, put the URL in notification_urls. For hosted checkouts, use payment_notification_urls: checkout notification_urls alone describes checkout status, not the payment.

    Drawing: PagBank · delivery settings. Destination: Your private Nevian Webhook URL; Scope: The products and events described in this step
  5. Return to Nevian, enter PagBank API token and click Next to save it. Copy it from the same account and webhook you just configured.

    Drawing: Connect PagBank. PagBank API token: ••••••••••••••••; Keep private: Never put account credentials in a page or ad link
  6. Back in Nevian, go on to the last step of the window. It reads Connected. Waiting for the first sale. Click Done: your first sale shows up by itself.

    Drawing: Connect PagBank. Connection: Connected; Last event: Received just now

The account email is needed for the notification API. This guide does not create any new storage for personal data. Do not configure credentials until the matching fields are available in your workspace.

Check that it works

  • The PagBank card in Integrations shows it as connected right away, waiting for the first sale.
  • The first real sale shows up in Logs → Webhooks and in the reports. A delivered webhook can be logged without creating a sale when the event is informational.
  • Orders from PagBank’s sandbox are recorded as tests and never count in revenue. Legacy notifications that carry only a notification code are logged without creating a sale.
  • For orders, put the visit ID in metadata.btk and use the same unique reference_id for order and charge. For hosted checkouts, use the visit ID or btk=<click ID> in reference_id.

Problems

No sale shows up after a real sale

Check the complete URL, event subscriptions and product scope. If you rotated the integration key, replace the URL in the provider too.

The call was rejected

Read the reason in Logs → Webhooks. Check the secret when one is configured. After you fix it, resend the rejected event from the provider, so it is not lost.

No matching click

A call that is not linked to a visit means the buyer reached the checkout without the click ID: follow the click ID instructions above.

Still stuck? Chat with us on WhatsApp or write to contact@nevian.io.

Images are our own drawings and configuration diagrams, not screenshots. Use the current values from your account; the examples contain no live credentials.