Skip to main content

Before You Begin

Ensure you have:

Supported Wallets


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.
ExpirationBy default, a QR Bank Transfer payment order expires 1 day after creation. To customize the expiration period (1-7 days) for your business needs, contact your account manager for configuration.

Key Request Parameters

The request requires several key objects specific to QR payments: See all available parameters in the request.
Amount limits for Peru: QR payments require a minimum of 1 PEN and cannot exceed 500 PEN per transaction. Each user has a daily limit of 2000 PEN across all transactions.

Example Request

Below is an example using 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 QR with their bank mobile app.
  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