/authorise integration. If you are integrating using our Checkout APIs, refer to the Pix documentation instead.
Pix is a payment method for instant direct bank transfers in Brazil, which is built and owned by the Central Bank (Banco Central) and operated by Brazilian banks, digital accounts, and wallets.
Shoppers can pay with Pix when shopping online. The money is sent directly from the shopper account to Adyen’s account, and then transferred once a day to the merchant’s bank account.
With Pix, the payment flow is as follows:
- The shopper chooses to pay with Pix on your website or app.
- Your website or app shows a QR code or QR code data for the shopper to copy.
- The shopper opens their banking or wallet app participating in Pix.
- The shopper selects Pix, scans the QR code or pastes QR code data, and then confirms the payment.
1 Refunds are only possible within 90 days after the payment.
Requirements
These instructions explain how to add Pix to an old Classic API-only integration. If you haven’t done the old Classic API integration yet, build one of our most recent online payments integration. Before starting your Pix integration, add Pix in your test Customer Area.Build your payment form
To show Pix in your payment form, you need to:- Show Pix as an available payment method. We provide a Pix logo which you can use on your payment form. For more information, refer to Downloading logos.
-
After the shopper selects Pix, collect the following details from the shopper:
- Name: First and last name of the shopper.
- CPF/CNPJ: The CPF/CNPJ is a unique identifier similar to the social security number. The shopper can provide their Cadastro de Pessoas Físicas (CPF) number or their Cadastro Nacional da Pessoa Jurídica (CNPJ) number.
-
Pass the following data to your server:
- Payment method type: pix.
- Data collected from your shopper in the previous step, if any.
Make a payment
From your server, make an /authorise request with the following parameters:
You need to send both
shopperName and socialSecurityNumber because this information will be shown to the shopper to help identify the payment.
/authorise request
pspReference: Our unique reference for the payment.resultCode: ReceivedadditionalData: Contains the QR code and QR code data.
Transaction conditions
Before approving the payment, Pix performs the following checks:- The shopper has sufficient funds in their transactional account.
- The transaction time did not exceed the maximum time defined by the Central Bank.
- There is no suspicion of fraud or breach of regulations to prevent money laundering and terrorist financing.
- There is no authentication problems in the shopper’s financial or payment institution transactional account.
- The shopper has not been excluded from their institution participating in Pix.
- Suspicion of fraud or breach of regulations to prevent money laundering and terrorist financing.
- Technical issue in the Pix ecosystem.
Present the QR code or QR code data
Use the information in theadditionalData object of the /authorise response to render the QR code or present the QR code data to the shopper.
pix.expirationDate: The date and time when the payment expires.pix.qrCodeData: QR code contents. Use this to render the QR code or present as-is so they can copy it.pix.qrcode: A link to render or download the QR Code.
Payment result
After the shopper scans the QR code and completes the payment, you will receive the result of the payment asynchronously in a webhook event. Here’s an example of a standard webhook event you might receive.JSON
Soap
Match the original and the paid amount
With Pix, shoppers can manually modify the amount they pay in their banking or wallet app after scanning the QR code or pasting the QR code data. Make sure to implement some business logic that matchesadditionalData.pix.originalAmountValue and amount.value. If the actual paid amount doesn’t match the original amount, we recommend that you cancel the payment and make a refund.
Refunds
You can refund a payment within 90 days after the payment in the Customer Area or via an API.Test and go live
Pix is an asynchronous payment method. In the test environment, you can simulate a Pix payment by promoting the pending payment to a sale.- Log in to your test Customer Area.
- Go to Transactions > Offers.
- Select the PSP reference of the pending Pix payment.
- Select the Promote this offer to a sale button.

