Onerway Merchant API Testing
Overview
Getting Started
Step 1: Obtain Authentication Credentials
1.
2.
3.
Note: Contact your account manager if you haven't received these credentials
Step 2: Select Environment
Environment | Description | Use Case |
---|---|---|
Sandbox | Simulated transactions with no actual funds movement | Development and testing |
Production | Live transactions involving actual funds | Production operations |
Important: Complete comprehensive testing in the sandbox environment before migrating to production
Step 3: Initialize Environment Variables
Step 4: Select API Endpoints
Core Payment Functions
Integration | Use Case | Complexity | Customization | Maintenance |
---|---|---|---|---|
Checkout | Rapid deployment, standard flows | Low | Basic | Low |
JS-SDK | Custom payment UI | Medium | High UI control | Medium |
API | Fully custom payment flows | High | Complete control | High |
APMs | Global market expansion | Medium | Varies by method | Medium |
Post-Transaction Processing
Query and Management
🔵 Stable | 🟡 Beta | 🟠 Deprecated
Step 5: Initiate Test Requests
1.
2.
3.
4.
WARNING
Repeated order transactions!
, click the auto-generate
buttonCore Payment Flow
Common Error Handling
Error Code | Description | Resolution |
---|---|---|
13027 | Repeated order transactions! | Click auto-generate to refresh request parameters |
40013 | Abnormal parameters (cannot be read) | Please check environment vairables |
70002 | Unknown decline | Contact technical support |
Tip: For a complete list of error codes, refer to the Error Code Documentation
Security Best Practices
1.
2.
3.
Terminology
Term | Definition |
---|---|
Merchant | Entity using Onerway payment services |
Transaction | Single payment event |
Settlement | Funds settlement process |
Chargeback | Transaction dispute initiated by consumer |
Webhook | Asynchronous notification mechanism |
Tokenization | Card information encryption technology |
Technical Support
1.
2.
3.
Modified at 2025-05-21 07:09:32