Skip to main content
Localpayment enables merchants to process secure bank transfer payments through ETPAY, Chile’s leading payment gateway that facilitates direct bank transfers and authentication with major Chilean financial institutions. This guide outlines the process for initiating ETPAY-based payments through Localpayment’s API, detailing required parameters, handling responses, and interpreting status codes for seamless integration with Chile’s banking infrastructure.

Before You Begin

Ensure you have:
Only individual (Home Banking Personas) payments are supportedThis payment method only accepts payments from personal bank accounts. If payer.type is sent as COMPANY, the transaction will be rejected.

Step 1. Create ETPAY Payment

To initiate an ETPAY payment in Chile, send a POST request to the Create Payin endpoint with ETPAY-specific parameters.

Key Request Parameters

The request requires several key objects specific to Chile ETPAY payments: See all available parameters in the request.

Example Request

Below is an example using curl:
curl

Step 2. Handle the Response

Successful Response

A successful ETPAY payment creation includes the redirect URL and transaction details:

Key Response Fields

Error Response

When ETPAY payment creation fails for Chile, you’ll receive specific error information:

Step 3. Handle ETPAY Payment Flow

  1. Payment Initiation: Redirect customer to ETPAY payment url.
  2. Bank Selection: Customer selects their Chilean bank from supported institutions.
  3. Bank Authentication: Customer logs into their online banking environment.
  4. Payment Authorization: Customer confirms payment within their banking interface.
  5. Real-time Confirmation: Localpayment receives payment notification.
  6. Status Update: Your system receives webhook with payment confirmation.

Step 4. Track Transaction Status

Monitor ETPAY payment progress through these methods:

Webhooks (Recommended)

Receive real-time notifications when transaction status changes. Most efficient for production environments.

Status API Endpoint

Query transaction status programmatically. Useful for polling or recovering lost webhook notifications.

Business Portal View

Visual interface for monitoring transactions. Great for manual oversight and detailed transaction analysis.

Common Status Codes

The Localpayment API provides various status codes to indicate the progress and outcome of the payment in the response.
Complete ReferenceView all status codes in our Transaction Status Documentation.

Testing Your Integration

Sandbox Environment

Use the staging environment for testing:

Test Scenarios for Chile

Verify your integration handles these scenarios:
  1. Successful Payment: Complete ETPAY payment flow with bank simulation.
  2. Bank Authentication: Test different bank authentication flows.
  3. Payment Expiration: Handle payment link expiration gracefully.
  4. Authentication Failure: Test failed bank login scenarios.
  5. Bank Rejection: Simulate bank-side payment rejection.
  6. Status Updates: Webhook handling and status polling.

Next Steps

After implementing ETPAY payments, consider these additional capabilities:

Refund the transaction

If necessary, you can refund the payment to the customer. Refer to the documentation for details.

Review transaction details

You can retrieve transaction information using the Localpayment API for detailed insights.

Last modified on November 10, 2026