TrustPay
zh
  • en
  • zh
  1. v3
TrustPay
zh
  • en
  • zh
  • 接入说明
  • 支付风控接口 - 商户接入指南
  • 枚举类型说明
  • 支付回调说明
  • v3
    • 同步卡直付接口
      POST
    • 异步卡直付接口
      POST
    • 收银台接口
      POST
    • 支付回调
      POST
    • 余额查询
      POST
    • 订单查询
      POST
  • v2
    • 代付
      POST
  • v4
    • 卡直付接口
      POST
  1. v3

同步卡直付接口

POST
/v3/payin/create/card/sync
创建代收订单接口,同步返回

Request

Body Params application/jsonRequired

Examples

Responses

🟢200Success
application/json
Body

Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.trustpay.money/v3/payin/create/card/sync' \
--header 'Content-Type: application/json' \
--data-raw '{
    "merchantId": 8820250900009,
    "orderNo": "local-test-40",
    "orderAmount": 20,
    "currency": "USD",
    "cardNumber": "4111111111111113",
    "cardExpiry": "2028-09",
    "cardCVV": "123",
    "cardHolderName": "Test User",
    "notifyUrl": "https://rbaskets.trustpay.money/checkout",
    "sign": "xxxx"
}'
Response Response Example
{
    "code": 880001,
    "message": "success",
    "data": {
        "merchantId": 8820250900009,
        "orderNo": "46384ec4-3c8e-4eb2-9e52-69ebd6bcc429",
        "platformOrderNo": "BW8i5ll0mle5cro4UmU55b2G",
        "currency": "USD",
        "orderAmount": 10,
        "paidAmount": 10,
        "refundAmount": 0,
        "fee": 2.5,
        "status": 5,
        "reason": ""
    }
}
Modified at 2026-02-02 08:00:22
Previous
支付回调说明
Next
异步卡直付接口
Built with