For the complete documentation index, see llms.txt. This page is also available as Markdown.

Payment Method

支付方式代表购物者打算用于交易的首选支付工具,例如信用卡、数字钱包。

Payment Method 对象

参数名称
类型
描叙

id

String

Coda 生成的 Payment Method ID

shopper_id

String

由 Coda 生成的Shopper ID

type

String

支付方式类型

String

支付类型对象,其结构会根据具体的支付类型有所不同。请参考相应的 Payment Mehotd 对象以获取更多详细信息。

接口

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对象

请求参数

参数名称
类型
必填?
描述
验证

shopper_id

String

由 Coda 生成的购物者 ID

必须介于 20和 32 之间

必须符合"[A-Za-z]+_[A-Za-z0-9]+

type

String

支付方式類型。可用类型:参见支付方式

必须介于 3 和 64 之间

必须符合"[a-zA-Z0-9_]+"

Object

Object

购请参阅支付方式详情章节

数字不为空

最后更新于

这有帮助吗?