TrustPay
en
  • en
  • zh
    TrustPay
    en
    • en
    • zh
    • Integration Guide
    • Risk Control – Merchant Integration
    • Enums
    • Payment Callback Specification
    • v3
      • Sync Card Direct Payin
        POST
      • Async Card Direct Payin
        POST
      • Cashier Payin
        POST
      • Payment Callback
        POST
      • Balance
        POST
      • Order Query
        POST
      • Exchange
        POST
    • v2
      • Payout(INR)
        POST
    • v4
      • Card Direct Payin
        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.
    Refer doc: Payment Callback Sepcification
    Modified at 2026-01-15 02:34:06
    Next
    Risk Control – Merchant Integration
    Built with