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

卡直付接口

Developing
POST
/v4/payin/create/card
创建代收订单接口

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/v4/payin/create/card' \
--header 'Content-Type: application/json' \
--data-raw '{
    "merchantId": 8820250900009,
    "orderNo": "local-test-2",
    "orderAmount": 20,
    "currency": "USD",
    "notifyUrl": "https://rbaskets.trustpay.money/checkout",
    "cardNumber": "4111111111111117",
    "cardExpiry": "2028-09",
    "cardCVV": "123",
    "cardHolderFirstName": "Test",
    "cardHolderLastName": "User",
    "cardHolderEmail": "test@example.com",
    "billingAddressStreet": "123 Main St",
    "billingCity": "Los Angeles",
    "billingPostalCode": "90001",
    "billingCountry": "US",
    "sign": "xxxx"
}'
Response Response Example
{
    "code": 880001,
    "message": "success",
    "data": {
        "merchantId": 8820250900009,
        "orderNo": "local-test-3",
        "platformOrderNo": "nohCvjyiLii9MgHCdxR78lul",
        "currency": "USD",
        "amount": 20.01
    }
}
Modified at 2026-01-29 09:00:45
Previous
代付
Built with