Welcome to Transafe
Welcome to Transafe. Transafe provides one-stop payment services. This is the technical integration documentation. Please read the required sections carefully. Contact Transafe support if you need help during integration.
Integration can be completed independently without Transafe staff involvement. If you encounter issues, review this documentation first.
Best Practices
WARNING
For create-payout APIs, always check the HTTP status code. If it is not
200, confirm the order status with operations before resubmitting.- For collection callbacks, always verify the actual paid amount.
- Add your server IPs to the merchant console IP allowlist.
- Allowlist Transafe callback IPs on your callback endpoints.
- Avoid repeatedly calling the collection API for the same user and amount within a short interval.
Conventions & Notes
- When asking for support, provide: request URL, request parameters, response HTTP status code, and response body. For signature issues, provide the pre-sign string, environment, and the signature received/generated.
- All
POSTrequests must useContent-Type: application/json. - Collection/payout platform callbacks must return HTTP
200. Otherwise the platform retries up to 5 times within 12 hours, then stops. - Character encoding: UTF-8.
- Data format: JSON for both request and response.
- Signature algorithm:
OPENSSL_ALGO_SHA256(merchant private key signs; platform public key verifies). - Evaluation order: protocol fields → business fields → transaction status.
- Amounts use major currency units. Avoid unnecessary trailing zeros:
100.00❌,100.20❌,100✅,100.2✅. - Sandbox supports automatic callbacks: odd last digit of phone → success, even → failure.
- Name + phone + email + amount identify customers. Do not hard-code all of them. Use a stable name + phone + email per customer to avoid risk-control false positives.
- All responses include a
statusfield. Non-200means failure. Map status enums for user messaging; do not expose rawmsg(it may contain sensitive information). - Request payloads must not contain Chinese characters.