Before You Begin
Ensure you have:- Valid API credentials (access token).
- Consult the banking transaction limits and rules.
Step 1. Create ETPAY Payment
To initiate an ETPAY payment in Chile, send aPOST 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 usingcurl:
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
- Payment Initiation: Redirect customer to ETPAY payment url.
- Bank Selection: Customer selects their Chilean bank from supported institutions.
- Bank Authentication: Customer logs into their online banking environment.
- Payment Authorization: Customer confirms payment within their banking interface.
- Real-time Confirmation: Localpayment receives payment notification.
- 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:- Successful Payment: Complete ETPAY payment flow with bank simulation.
- Bank Authentication: Test different bank authentication flows.
- Payment Expiration: Handle payment link expiration gracefully.
- Authentication Failure: Test failed bank login scenarios.
- Bank Rejection: Simulate bank-side payment rejection.
- 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.

