Payment Method
支付方式代表购物者打算用于交易的首选支付工具,例如信用卡、数字钱包。
Payment Method 对象
参数名称
类型
描叙
id
String
Coda 生成的 Payment Method ID
shopper_id
String
由 Coda 生成的Shopper ID
type
String
支付方式类型
接口
POST /v1/payment-methods
GET /v1/payment-methods/{paymentmethod.id}创建 Payment Method
POST /payment-methods
curl --location '{baseUrl}/v1/payment-methods'
--header 'X-Partner-Id: par_sg1882402279a0000'
--header 'X-Api-Key: sdirugnvsiguhsirghsekjhgh'
--header 'Content-Type: application/json'
--header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJwYXJ0bmVyX2lkIjoicGFyX3NnMTg4MjQwMjI3OWEwMDAwIiwiaWF0IjoxNzAxMjMzNTM0fQ.o_tcEJUEwEms49J0MXwvRuCGbsBx3rHugfgKsXVgj9I'
--data '{
"shopper_id": "shp_sg18c196c9bd50006",
"type": "card",
"card": {
"country_code": "SA"
}
}'响应Payment Method对象
获取 Payment Method
GET /payment-methods/{paymentmethod.id}
响应Payment Method对象
请求参数
最后更新于
这有帮助吗?