Supported workflows
Before you begin
Complete these steps before you send your first SmartPix payment through dLocal:- Set up a dLocal integration in your workspace. Follow the dLocal integration setup guide if you don’t have one yet.
- Ask dLocal to enable SmartPix on your dLocal account.
- In the Payrails Portal, go to Settings → Integrations, open your dLocal integration, select SmartPix under Payment methods, and save.
- Add SmartPix as a payment option in your workflow.
Request fields for dLocal
Send these fields in the authorize request, in addition to the standard authorize fields. Required fields must be present for the payment to succeed. Payrails sends Optional fields to the PSP when you include them.Authorize a SmartPix payment
Call authorize a payment withsmartPix as the paymentMethodCode. The response includes the redirect to the dLocal payment page.
Authorize request
success or error URL. Confirm the result through webhook notifications or the execution status before you fulfill the order.
How dLocal handles SmartPix
- dLocal returns a redirect URL to its hosted payment page. The payment stays pending until the customer authorizes it, and Payrails completes it from the dLocal notification.
- dLocal rejects cancel requests for SmartPix in every payment state, so Payrails can’t cancel a SmartPix payment. To return funds after a successful payment, refund it.
- For recurring Pix through dLocal, use Pix Automático. Each SmartPix payment is a new customer-initiated payment.