Skip to main content
Localpayment enables merchants to process instant payments through Bolivia’s interoperable QR payment system. This guide outlines the process for initiating QR-based payments through Localpayment’s API, detailing required parameters, handling responses, and interpreting status codes for seamless integration with Bolivia’s unified payment network.

Before You Begin

Ensure you have:

Step 1. Create QR Payment

To generate a QR code for payment collection, send a POST request to the Create Payin endpoint with QR-specific parameters.

Key Request Parameters

The request requires several key objects specific to QR 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 QR payment creation includes the QR code data and payment details:

Key Response Fields

Error Response

When QR generation fails, you’ll receive detailed error information:

Step 3. Display QR Code and Handle Payment

  1. QR Display: Present QR code to customer through chosen channel.
  2. Bank App Scan: Customer scans with any Bolivian bank mobile app (Banco Union, BNB, BCP, etc.).
  3. Payment Authorization: Customer confirms payment in their banking environment.
  4. Real-time Confirmation: Localpayment receives instant payment notification.
  5. Status Update: Your system receives webhook with payment confirmation.

Best Practices for QR Display

  • Minimum display size: 250x250 pixels for mobile scanning.
  • Maintain 1:1 aspect ratio without distortion.
  • Ensure high contrast (dark on light background).
  • Add quiet zone (white border) around QR code.
  • Include alt text (e.g. “QR Code Payment”).
  • Show Clear Payment Instructions.
  • Handle Time-to-Live (TTL) and Expiration.

Step 4. Track Transaction Status

Monitor QR 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 QR Scenarios

Verify your integration handles these scenarios:
  1. Successful Payment: Complete QR scan and payment flow.
  2. QR Expiration: Handle expired QR codes gracefully.
  3. Multiple Payment Attempts: Same QR scanned multiple times.
  4. Status Updates: Webhook handling and status polling.

Next Steps

After implementing QR 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