Chingchingpay Payment Gateway
  1. 支付網關
Chingchingpay Payment Gateway
  • 支付網關
    • 查詢交易狀態
      POST
    • 發起支付交易
      POST
    • 發起退款交易
      POST
    • 創建PaymentLink H5 頁面
      POST
    • 獲取Settlement列表
      GET
    • Merchant/下載Settlement文件
      GET
  1. 支付網關

發起支付交易

测试环境
https://test-api.chingchingpay.com/gateway
测试环境
https://test-api.chingchingpay.com/gateway
POST
https://test-api.chingchingpay.com/gateway
/api/v1/payments/checkout
Last modified:2025-07-15 16:02:05
發起支付交易

Request

Header Params

Body Params application/json

Example
{
    "amount": 0,
    "callback_url": "string",
    "cancel_url": "string",
    "channel_id": 0,
    "client_ip": "string",
    "complete_url": "string",
    "currency": "string",
    "description": "string",
    "device_id": "string",
    "expires_at": "string",
    "merchant_id": "string",
    "merchant_reference": "string",
    "payment_id": "string",
    "payment_method": "string",
    "payment_method_option": "string",
    "store_id": "string",
    "transaction_type": "string"
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://test-api.chingchingpay.com/gateway/api/v1/payments/checkout' \
--header 'x-api-key: ' \
--header 'x-signature;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "amount": 0,
    "callback_url": "string",
    "cancel_url": "string",
    "channel_id": 0,
    "client_ip": "string",
    "complete_url": "string",
    "currency": "string",
    "description": "string",
    "device_id": "string",
    "expires_at": "string",
    "merchant_id": "string",
    "merchant_reference": "string",
    "payment_id": "string",
    "payment_method": "string",
    "payment_method_option": "string",
    "store_id": "string",
    "transaction_type": "string"
}'

Responses

🟢200OK
application/json
OK
Body

Example
{
    "code": 0,
    "data": {
        "merchant_reference": "string",
        "message": "string",
        "next_action": {
            "alipay_auto_debit": {
                "access_token": "string",
                "auth_site_user_id": "string",
                "expires_in": "string",
                "re_expires_in": "string",
                "refresh_token": "string",
                "token_status": "string"
            },
            "alipay_mobile_security_pay": {
                "order_str": "string"
            },
            "crypto_payment": {
                "amount": 0,
                "contract_id": "string",
                "expiration": 0,
                "fee_rate": 0,
                "memo": "string",
                "merchant_address": "string",
                "token_id": "string",
                "tx_id": "string"
            },
            "display_qr_code": {
                "qr_code": "string",
                "url": "string"
            },
            "redirect_to_url": {
                "http_method": "string",
                "params": "string",
                "url": "string"
            },
            "type": "string",
            "wechat_inapp_payment": {
                "app_id": "string",
                "nonce_str": "string",
                "package": "string",
                "partner_id": "string",
                "pay_sign": "string",
                "prepay_id": "string",
                "time_stamp": "string"
            },
            "wechat_jsapi_payment": {
                "app_id": "string",
                "nonce_str": "string",
                "package": "string",
                "pay_sign": "string",
                "sign_type": "string",
                "time_stamp": "string"
            },
            "wechat_official_account_auth_code": {
                "auth_code": "string"
            },
            "wechat_official_account_openid": {
                "access_token": "string",
                "expires_in": 0,
                "openid": "string",
                "refresh_token": "string",
                "scope": "string",
                "unionid": "string"
            },
            "wechat_pay_in_mini_program": {
                "app_id": "string",
                "nonce_str": "string",
                "package": "string",
                "pay_sign": "string",
                "sign_type": "string",
                "time_stamp": "string"
            }
        },
        "payment_id": "string",
        "payment_reference": "string",
        "result": "string",
        "transaction_id": "string",
        "transaction_type": "string"
    },
    "message": "string"
}
Modified at 2025-07-15 16:02:05
Previous
查詢交易狀態
Next
發起退款交易
Built with