PIX is a Brazilian payment method, officially launched by the local Central Bank, that enables immediate payment confirmation and 24/7 availability. The user can complete the payment using any Home Banking or Ewallet App, by copying and pasting a Transaction ID or scanning a QR code (see example in the next section).
PIX payment method is only available in Brazil
PIX payments support a REDIRECT or DIRECT flow.
Redirect PIX Payment
In this flow, payment_method_flow is set to REDIRECT . The API returns a redirect_URL, which is used to redirect the user to a dLocal-hosted page (shown below). The user will be able to open any App that supports PIX (Home Banking and Ewallets) and decide whether to use the scan QR or the Transaction ID copy/paste option.
Using the REDIRECT method, the payment will have the PENDING status until the user confirms the payment, and dLocal gets notified (immediate after user confirmation).
As users who are paying using PIX with their mobile device will not be able to scan the QR code, the mobile flow is based on copying and pasting the ticket.number to the Bank Application in order to complete the payment.
Please use ticket.number for the Copy and Paste experience, the label presented to the user should be '"Copia e Cola" (The local and known term).
Desktop version instructions
Adding a QR code to the PIX payment page (Direct flow)
There are 2 ways of presenting the QR code to the user:
Build a QR code using the ticket.number field
Use the ticket.barcode field - It includes a Base64 encoded QR image.