Onerway Payment API
Onerway APIs
    • Onerway 商户 API 接入指南
    • Onerway Merchant API Testing
    • Payment APIs
      • Checkout
        • Card Checkout
        • Card Checkout - Subscribe
        • APMs Checkout
        • Single-Method APM Checkout
        • Card Checkout - Authorizaiton
      • JS-SDK
        • One-Time Payment Intent
        • Subscription Payment Intent
        • Card Tokenization Intent
      • API
        • Card
        • Pre-Auth
        • Auth Reversal
        • Capture
        • Card Tokenization
        • Tokenized Payment
        • Subscription - Charge by Onerway
        • Subscription Initial Charge
        • Subscription Recurring Charge
        • Subscription Cancellation
        • Subscription Reactivation
        • Token Removal
      • APMs - Alternative Payment Methods
        • Thailand
          • Thailand-TrueMoney Wallet
          • Thailand-PromptPay
          • Thailand-Rabbit_Line_pay
          • Thailand-KRUNGSRI_ONLINE
        • Malaysia
          • Malaysia-TOUCH_GO_EWALLET
          • Malaysia-Boost
          • Malaysia-MCASH
          • Malaysia-ShopeePay
          • Malaysia-FPX
        • Indonesia
          • Indonesia-ShopeePay
          • Indonesia-OVO
          • Indonesia-DANA
          • Indonesia-QRIS
          • Indonesia-BNI
          • Indonesia-MANDIRI
          • Indonesia-Maybank
          • Indonesia-PERMATA
          • Indonesia-BRI
          • Indonesia-CIMB
          • Indonesia-AKULAKU
          • Indonesia-DANA(Subscribe)
        • Japan
          • Japan-Konbini
          • Japan-PayEasy
        • South Korea
          • South Korea-Kakao_Pay
          • South Korea-Naver_Pay
          • South Korea-PAYCO
          • South Korea-Cards_KOR
        • Vietnam
          • Vietnam-NINE_PAY
          • Vietnam-PAYME
          • Vietnam-VIET_QR
          • Vietnam-MOMO
          • Vietnam-ATM_CARD
        • Philippines
          • Philippines-Dragonpay
          • Philippines-QR_PH
        • Brazil
          • Brazil-Boleto
          • Brazil-Visa/Master
          • Brazil-PIX
          • Brazil-PicPay
          • Brazil-MercadoPago
        • Mexico
          • Mexico-Visa/Master
          • Mexico-SPEI
          • Mexico-OXXO
          • Mexico-PaySafeCard
        • Chile
          • Chile-Visa/Master
          • Chile-Khipu
          • Chile-Webpay
          • Chile-Servipag
          • Chile-Sencillito
        • Paraguay
          • Paraguay-Visa/Master
          • Paraguay-Infonet
        • United States
          • United States-PayPal
          • United States-Venmo
          • United States-CASH_APP
        • Belgium
          • Belgium-Bancontact
          • Belgium-Payconiq
        • Germany
          • Germany-PaySafeCard
          • Germany-Giropay
        • Italy
          • Italy-MyBank
        • Luxembourg
          • Luxembourg-Payconiq
        • Estonia
        • Turkey
          • Turkey-Papara
        • Peru
          • Peru-PagoEfectivo
      • Refund
        • Initiate Refund
        • Cancel Refund
      • Settlement
        • Settlement File Download
      • Query
        • Retrieve Transaction Orders
        • Query Installment Options
        • Retrieve Subscription Details
        • Query Chargeback Records
        • Retrieve Card Tokenization Records
      • Utils
        • Signature Validation Helper

    Onerway Merchant API Testing

    API Version: v1.0.0

    Overview#

    The Onerway Merchant API Testing Platform provides a comprehensive environment for integrating with our payment processing system. This platform enables you to:
    Test API functionality without development resources
    Receive real-time request and response data
    Simulate various business scenarios
    Access detailed parameter specifications and examples
    Ideal for:
    Prospective merchants evaluating Onerway services
    Technical teams implementing system integration
    Existing merchants troubleshooting API issues

    Getting Started#

    Step 1: Obtain Authentication Credentials#

    Before using the platform, retrieve the following from your merchant dashboard:
    1.
    merchantNo: Your unique merchant identifier
    2.
    appId: Application identifier for your site
    3.
    secretKey: Used for signature generation (secure storage required)
    Note: Contact your account manager if you haven't received these credentials

    Step 2: Select Environment#

    EnvironmentDescriptionUse Case
    SandboxSimulated transactions with no actual funds movementDevelopment and testing
    ProductionLive transactions involving actual fundsProduction operations
    Important: Complete comprehensive testing in the sandbox environment before migrating to production

    Step 3: Initialize Environment Variables#

    MERCHANT-NO: Merchant identifier
    secret: Signature key
    APPID: Application identifier
    WEBHOOK-ENDPOINT: Payment callback URL
    RETURN-URL: Frontend redirect URL after payment completion

    Step 4: Select API Endpoints#

    Our comprehensive payment processing solution covers the complete transaction lifecycle:

    Core Payment Functions#

    Checkout 🔵: Standardized payment experience with rapid integration
    JS-SDK 🔵: Server-side order creation for custom payment interfaces
    API Core 🔵: Low-level payment processing with maximum flexibility
    APMs 🔵: Support for global payment methods including wallets and bank transfers
    IntegrationUse CaseComplexityCustomizationMaintenance
    CheckoutRapid deployment, standard flowsLowBasicLow
    JS-SDKCustom payment UIMediumHigh UI controlMedium
    APIFully custom payment flowsHighComplete controlHigh
    APMsGlobal market expansionMediumVaries by methodMedium

    Post-Transaction Processing#

    Refund 🔵: Complete refund lifecycle management
    Settlement 🔵: Merchant fund settlement with reconciliation file access

    Query and Management#

    Query 🔵: Comprehensive data retrieval for transactions, installments, subscriptions, chargebacks, and tokenized cards
    Utils 🔵: Auxiliary functions including signature verification
    🔵 Stable | 🟡 Beta | 🟠 Deprecated

    Step 5: Initiate Test Requests#

    1.
    Select the desired API endpoint from the navigation panel
    2.
    Complete the required request parameters (pre-populated with sample values)
    3.
    Click "Send" to submit the request
    4.
    Review the response and detailed information
    WARNING
    If you encounter Repeated order transactions!, click the auto-generate button

    Core Payment Flow#

    Common Error Handling#

    Error CodeDescriptionResolution
    13027Repeated order transactions!Click auto-generate to refresh request parameters
    40013Abnormal parameters (cannot be read)Please check environment vairables
    70002Unknown declineContact technical support
    Tip: For a complete list of error codes, refer to the Error Code Documentation

    Security Best Practices#

    1.
    API Key Protection
    Never store keys in client-side code
    2.
    Signature Verification
    Include valid signatures with all requests
    Verify signatures on all webhook notifications
    Use HTTPS for all API communications
    3.
    IP Whitelisting
    Configure API call IP whitelists in the merchant dashboard
    Restrict webhook receiver server IP ranges

    Terminology#

    TermDefinition
    MerchantEntity using Onerway payment services
    TransactionSingle payment event
    SettlementFunds settlement process
    ChargebackTransaction dispute initiated by consumer
    WebhookAsynchronous notification mechanism
    TokenizationCard information encryption technology

    Technical Support#

    For technical assistance:
    Support Email: abel.wang@onerway.com
    Issue Reporting Process:
    1.
    Prepare order number, error details, and reproduction steps
    2.
    Submit detailed issue description with screenshots
    3.
    Technical team will respond within one business day
    Modified at 2025-05-21 07:09:32
    Previous
    Onerway 商户 API 接入指南
    Next
    Card Checkout
    Built with