Skip to main content
Accept WebPay payments from customers in Chile with dLocal as the payment service provider (PSP). The customer selects WebPay, pays with their card on the WebPay page and returns to your site.

Supported workflows

Before you begin

Complete these steps before you send your first WebPay payment through dLocal:
  1. Set up a dLocal integration in your workspace. Follow the dLocal integration setup guide if you don’t have one yet.
  2. Ask dLocal to enable WebPay on your dLocal account.
  3. In the Payrails Portal, go to Settings → Integrations, open your dLocal integration, select WebPay under Payment methods, and save.
  4. Add WebPay 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. Payrails checks Required fields and returns an error when one is missing. Fields required by the PSP pass the Payrails checks but the PSP can decline the payment without them.

Authorize a WebPay payment

Call authorize a payment with webPay as the paymentMethodCode. The response includes the redirect to the WebPay page.
Authorize request
After the customer pays, they return to your success or error URL. Confirm the result through webhook notifications or the execution status before you fulfill the order.

How dLocal handles WebPay

  • dLocal returns a redirect URL to the WebPay page. The payment stays pending until the customer pays, and Payrails completes it from the dLocal notification.
  • Payrails captures WebPay payments through dLocal immediately, so a successful payment is final.
  • Cancel a WebPay payment through dLocal only while it’s still pending, before the customer pays. dLocal can’t cancel a completed payment.
Last modified on October 2, 2026