{
"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"
}
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"
}'
{
"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"
}