Skip to main content
You can add Pix to your existing integration. The following instructions show only what you must add to your integration specifically for Pix. If an instruction on this page corresponds with a step in the main integration guide, it includes a link to the corresponding step of the main integration guide.

Requirements

How it works

  1. The shopper selects Pix as the payment method.
  2. The shopper enters their details in the payment form that you build.
  3. When you make the payment request, you include additional information about the items that the shopper intends to purchase.
  4. Your existing integration setup enables you to present a QR code to the shopper to complete the payment.
  5. You capture the payment.

Build your payment form

Include fields to collect the following information from your shopper in the payment form. Pass the collected data from the front end to your server because you need to submit both Name and CPF/CNPJ in the /payments request. Show this information to the shopper together with the QR code to help identify the payment. You can download the logo for Pix to use in your form.

Get Pix as an available payment method

When you make the /paymentMethods request to get available payment methods, specify the following so that Pix is included in the response. Example request for available payment methods
Example response with Pix available

Add additional parameters to your /payments request

When you make a payment, add the following parameters: It is advisable to send both shopperName and socialSecurityNumber, because this information will be shown to the shopper to help identify the payment. Example payment request for Pix
The response includes the action.type: qrCode. Example response with an additional action
Example webhook:

JSON

Soap

For more information, see Webhooks. You can include the following fields in your payment confirmation:
  • pix.payer.bankName
  • pix.payer.isbp
  • pix.payer.name
  • pix.payer.taxId
To add these fields to your notifications:
  1. Log in to your test Customer Area.
  2. Select Developers > Webhooks.
  3. Select the edit icon **next to the name of the webhook.
  4. Under Additional settings > Payment, select Include Pix Payer info.

Refunds

You can refund a payment within 90 days after the payment in the Customer Area or via the Refund 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.
  1. Log in to your test Customer Area.
  2. Go to Transactions > Offers.
  3. Select the PSP reference of the pending Pix payment.
  4. Select the Promote this offer to a sale button.
Pix payments that have been paid (including test offers that you manually promoted to sale) are under Transactions > Payments. Test the reconciliation process by promoting test payments from offer to sale in your test Customer Area. Before you can accept live Pix payments, you need to submit a request for Pix in your live Customer Area.

See also