TrustPay
en
  • en
  • zh
  1. v3
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
  1. v3

Sync Card Direct Payin

POST
/v3/payin/create/card/sync
Create a new incoming payment (collection) order synchronously

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-54",
    "orderAmount": 20,
    "currency": "USD",
    "cardNumber": "4111111111111118",
    "cardExpiry": "2028-09",
    "cardCVV": "123",
    "cardHolderName": "Test User",
    "notifyUrl": "https://rbaskets.trustpay.money/checkout",
    "sign": "xxxx"
}'
Response Response Example
payin failed
{
    "code": 880001,
    "message": "success",
    "data": {
        "merchantId": 8820250900009,
        "orderNo": "local-test-54",
        "platformOrderNo": "",
        "currency": "USD",
        "orderAmount": 20,
        "paidAmount": 0,
        "refundAmount": 0,
        "fee": 0,
        "status": 3,
        "reason": "all channels failed: channel[7]: get channel config failed: 880016: invalid channel config, please connect support; channel[5]: card payin failed: The requested action could not be performed, semantically incorrect, or failed business validation. Invalid card number"
    }
}
Modified at 2026-02-02 08:01:20
Previous
Payment Callback Specification
Next
Async Card Direct Payin
Built with