TrustPay
en
  • en
  • zh
    TrustPay
    en
    • en
    • zh
    • Integration Guide
    • Risk Control – Merchant Integration
    • Enums
    • v3
      • c16
        • Payin Order Create(Counter)
      • Balance
        POST
      • Payin
        POST
      • Payment Callback
        POST
      • Order Query
        POST
      • Risk Confirmation
        POST
      • Card Direct Payin
        POST
    • v2
      • Payout(INR)
        POST

    Integration Guide

    Communication Protocol#

    Merchants must follow the specified data exchange format when requesting platform services.
    Base URL: https://api.trustpay.money
    All API requests must use the POST method with Content-Type: application/json.
    Both request and response bodies are in JSON format.
    To ensure consistent character encoding, all data packets must use UTF-8.
    Currency unit: CNY (Yuan), accurate to two decimal places (cents).

    Signature Rules#

    The signature algorithm is MD5.
    Signature string format:
    key1=value1&key2=value2&secret=secret
    The data to be signed includes all non-empty request parameters except sign, concatenated in A–Z alphabetical order, followed by &secret=secret.
    The secret key can be found on the merchant dashboard under Profile.

    Authentication#

    Add a custom header field to each request:
    X-Api-Key: {your_api_key}
    The API key value can be viewed on the merchant dashboard under Profile.

    Callback Guidelines#

    Callbacks may be sent multiple times; merchants must handle duplicate notifications gracefully.
    Callback data is sent in JSON format with Content-Type: application/json.
    Modified at 2025-11-15 00:37:02
    Next
    Risk Control – Merchant Integration
    Built with