对保存的信用卡收费 - Connect V2
Charge saved credit card - Connect V2
如何使用已保存的信用卡向客户收费?
Card 对象 returns ID,如何将该 ID 转换为信用卡随机数?
你不必。
充电端点采用 card_nonce
或 customer_id
和 customer_card_id
的组合。在这种情况下,您的 json body 将如下所示:
{
"idempotency_key": "xxxx",
"amount_money": {
"amount": 100,
"currency": "USD"
},
"customer_card_id": "{{customer_card_id}}";
"reference_id": "some optional reference id",
"note": "some optional note",
"customer_id":"{{customer_id}}",
"delay_capture": false
}
您可以通过此页面上的 ruby 示例阅读更多相关信息:https://docs.connect.squareup.com/articles/processing-recurring-payments-ruby
如何使用已保存的信用卡向客户收费?
Card 对象 returns ID,如何将该 ID 转换为信用卡随机数?
你不必。
充电端点采用 card_nonce
或 customer_id
和 customer_card_id
的组合。在这种情况下,您的 json body 将如下所示:
{
"idempotency_key": "xxxx",
"amount_money": {
"amount": 100,
"currency": "USD"
},
"customer_card_id": "{{customer_card_id}}";
"reference_id": "some optional reference id",
"note": "some optional note",
"customer_id":"{{customer_id}}",
"delay_capture": false
}
您可以通过此页面上的 ruby 示例阅读更多相关信息:https://docs.connect.squareup.com/articles/processing-recurring-payments-ruby