Before You Begin
Ensure you have:- Valid API credentials (access token).
Supported Wallets
- Valid API credentials (access token).
Step 1. Create QR Payment
To generate a QR code for payment collection, send aPOST 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.
Example Request
Below is an example usingcurl:
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
- QR Display: Present QR code to customer through chosen channel.
- Bank App Scan: Customer scans QR with their bank mobile app.
- Payment Authorization: Customer confirms payment in their banking environment.
- Real-time Confirmation: Localpayment receives instant payment notification.
- 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:- Successful Payment: Complete QR scan and payment flow.
- QR Expiration: Handle expired QR codes gracefully.
- Multiple Payment Attempts: Same QR scanned multiple times.
- 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.

