Accept Pix and Pix Automático subscriptions from Brazilian buyers with the Primer Pix block (CPF + full name).
What is Pix
Pix is Brazil's instant payment method. With Primer (dLocal) web2wave supports two variants:
| Method | Use for |
|---|---|
Pix Automático (DLOCAL_PIX_AUTOMATICO, default) | Subscriptions – allows recurring charges |
Pix (DLOCAL_PIX) | One-off payments only |
Pix requires the buyer's CPF (Brazilian tax ID) and full name, so it has its own paywall block.
The block works on paywalls with the Primer or Hubx payment system.
Setup
- Enable the Pix method you need (dLocal Pix / Pix Automático) in your Primer dashboard.
- Create a price in BRL (or add BRL as a currency of an existing Primer price).
- Open the paywall editor and add the Primer Pix (Brazil) block (category Paywall).
- Choose Pix payment method: Pix Automático (subscriptions) or Pix (one-off payments).
- Publish the paywall.
The block is shown only when Primer offers Pix for the checkout session – i.e. a BRL price for a buyer from Brazil. For everyone else it stays hidden, so it is safe to keep it next to your regular card form.
You can also add Pix manually as an option of the Primer tabs / accordion block; it is not in that block's defaults.
Block settings
| Setting | Default |
|---|---|
| Pix payment method | Pix Automático (subscriptions) |
| Button text | Pay with Pix |
| CPF field label / placeholder | CPF / 000.000.000-00 |
| Full name field label / placeholder | Full name / Name as on your bank account |
| Error: invalid CPF | Enter a valid CPF (11 digits) |
| Error: missing full name | Enter your full name (first and last name) |
| Error: Pix payment failed | Pix payment failed. Please try again or choose another payment method. |
| Error: Pix not available | Pix is not available right now. Please choose another payment method. |
| Payment Failed Actions | Popup or JS callback on a failed payment |
The button is styled with the regular Button theme variables.
How it works for the buyer
- The buyer enters CPF and full name. Both are validated (CPF must be a valid 11-digit number; the name must contain first and last name).
- Pay with Pix stays disabled until both fields are valid. CPF and name are sent to Primer (and Hubx) as the customer's national document ID, first and last name.
- The Pix payment flow starts (QR code / bank app). web2wave waits up to 15 minutes for the buyer to confirm the payment, then the purchase completes as usual.