Token
这将生成一个 Token,它是一个 随机的字母数字字符串。该Token 唯一对应Shopper 提供的特定支付方式信息。
Token对象
参数名称
类型
描述
id
String
Coda生成的 Token ID
payment_method_id
String
Coda 生成的 Payment Method ID
status_code
String
Token的状态码
shopper_action
Object
有关Shopper交互以授权token的详细信息
shopper_action.id
String
Shopper操作实体的 ID
shopper_action.type
String
Shopper操作的类型。可能的值=‘重定向’
shopper_action.redirection
Object
重定向的详细信息
shopper_action.redirection.id
String
重定向ID
shopper_action.redirection.method
String
用于重定向的 HTTP 方法。可能的值包括“GET”、“POST”
shopper_action.redirection.url
String
Shopper重定向的 URL
接口
POST /v1/tokens
GET /v1/tokens/{id}Token取消对象
参数名称
类型
描述
id
String
Coda 生成的token取消 ID
reason
String
Token取消原因
status_code
String
已取消token的状态码
toekn_id
Object
提供用于token取消的token ID
接口
创建Token
POST /tokens
响应token对象
获取Token
GET /tokens/{token.id}
响应token对象
请求参数
参数名称
类型
必填?
描述
验证
payment_method_id
String
是
Coda 生成的支付方式 ID
必须介于 3和 255 之间
不得留白
取消Token
POST /tokens/{tokenid}
响应token对象
请求参数
参数名称
类型
必填?
描述
验证
payment_method_id
String
是
Coda 生成的支付方式 ID
必须介于 1 到 255 之间
最后更新于
这有帮助吗?