Before You Begin
Ensure you have:API Credentials
Valid API credentials and access token for authentication.
Account Setup
Proper account setup for your target country and business verification.
IP Whitelisting
Whitelist your server IP addresses for API access.
Webhook Endpoint
Set up a webhook URL to receive payment notifications.
Step 1: Create Installment Plan Quote
Before processing an installment payment, you need to generate an installment plan quote to present payment options to the customer. To quote an installment plan, you’ll need to send aPOST request to the Generate Installment Plan Quote endpoint.
Key Request Parameters
Installments are available in local currency only. In Peru, you can offer installments on PEN payments but not on USD payments.
Example Request
Below is an example usingcurl:
curl
Step 2: Handle the Quote Response
Successful Response
A successful installment quote includes detailed payment plan information:Key Response Fields
Error Response
When installment quote generation fails::Best Practices for Installment Presentation
- Display all costs clearly (financing fees, total amount)
- Show monthly payment amounts prominently
- Include comparison between different installment options
- Explain automatic payment process for future installments
- Include customer support information
- Handle token expiration gracefully (10-minute window)
Step 3: Process Installment Payment
Once the customer selects an installment plan, process the payment using the installments token.Example Request
curl
Step 4: Track Installment Status
Monitor installment plan progress through these methods:Webhooks (Recommended)
Receive real-time notifications for each installment payment and plan status changes.
Status API Endpoint
Query transaction status programmatically. Useful for polling or recovering lost webhook notifications.
Business Portal View
Visual interface for monitoring installment plans and payment performance.
Common Status Codes
The Localpayment API provides various status codes for installment plans and payments.APPROVED is not the final status. It means the card payment was confirmed, but the funds are not credited to your balance yet. You can see the payment, but you can’t withdraw the funds until the status changes to Completed. This usually takes 1 to 2 days, depending on the provider.
Complete ReferenceView all status codes in our Transaction Status Documentation.
Step 5: Manage Installment Lifecycle
Installment Payment Flow
Testing Your Integration
Test Scenarios
Verify your integration handles these scenarios:- Successful Installment: Complete installment payment flow
- Multiple Plan Options: Present different installment terms (2, 3, 6 months)
- Token Expiration: Handle expired installmentsToken (10-minute window)
- Status Updates: Webhook handling and status polling.
Next Steps
After implementing installments, 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.

