交易响应码
交易响应码
每一个接口都会返回responseCode和responseMsg两个字段,其中responseCode为响应码,responseMsg为响应描述。
responseCode的取值为下面表格中的一个,只有响应为success时,才代表请求成功。
注意
请求成功不代表交易成功,具体交易状态请以交易状态码为准。
当responseCode为fail时,请通过接口返回的errorCode和errorMsg字段查看具体失败原因。
状态码 | 状态描述 |
---|---|
success | 请求成功 |
fail | 请求失败 |
交易状态码
状态码 | 状态描述 |
---|---|
init | 订单初始化 |
pending | 订单处理中 |
success | 支付成功 |
fail | 支付失败 | 撤销失败 | 退款失败 |
closed | 订单已关闭 |
canceled | 撤销成功 |
refunding | 退款处理中 |
refunded | 退款成功 |
unknown | 订单状态未知 |
交易错误码
错误码 | 错误描述 |
---|---|
bad_request | 错误请求 |
duplicate_request | 重复请求 |
invalid_param | 请求参数为空或不合法 |
signature_fail | 签名失败 |
signature_verify_fail | 签名验证失败 |
amount_above_limit | 金额超过最大限额 |
amount_below_limit | 金额低于最小限额 |
order_error | 下单失败 |
order_not_exist | 订单不存在 |
order_not_unique | 订单不唯一 |
configuration_error | 配置错误,请联系您的商务经理 |
currency_not_supported | 不支持的币种 |
operation_not_supported | 不被允许的操作请求 |
payment_method_not_allowed | 不支持的支付方式 |
validation_error | 业务校验失败 |
system_error | 系统错误 |
unknown_error | 未知错误 |