【问题标题】:Charge saved credit card - Connect V2为已保存的信用卡充值 - Connect V2
【发布时间】:2018-02-01 00:16:09
【问题描述】:

如何使用已保存的信用卡向客户收费?

Card 对象返回 ID,如何将该 ID 转换为信用卡 nonce?

【问题讨论】:

    标签: square square-connect


    【解决方案1】:

    您不必这样做。

    Charge 端点采用card_noncecustomer_idcustomer_card_id 的组合。在这种情况下,您的 json 正文将如下所示:

    {
      "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

    【讨论】:

    • 再次感谢您的帮助:)
    猜你喜欢
    • 2021-12-20
    • 2019-10-24
    • 2022-07-29
    • 2014-09-09
    • 2022-01-04
    • 2011-08-17
    • 2021-03-11
    • 1970-01-01
    • 2021-02-23
    相关资源
    最近更新 更多