【问题标题】:Including tip amount in an Order在订单中包含小费金额
【发布时间】:2020-05-11 13:29:36
【问题描述】:

我在使用 Square Connect API 时遇到问题。我需要添加小费金额,但我在 Transaction Charge 端点和 Order CreateOrder 端点中都没有看到可以执行此操作的地方。

唯一提到tip的地方是Tender对象,属性tip_money,但是在创建Transaction或Order时我们不能发送Tender。

https://docs.connect.squareup.com/api/connect/v2#endpoint-charge

有没有人使用 Square Connect v2 API 实现过这个?我们正在使用完全定制的 UI 开发应用程序,因此我们不能使用 Square 或任何东西的 webviews。

非常感谢。

【问题讨论】:

    标签: square square-connect


    【解决方案1】:

    目前您无法通过 Square API 添加提示。添加小费的唯一方法是在通过 Square POS 应用程序付款时,如果您启用了小费。当您接受此类付款时,它们将显示在您找到的Tender 对象(Transaction 的一部分)中。

    【讨论】:

    • 谢谢。您知道自从您发布回复后情况是否发生了变化?是否有解决方法(假设纯 API,没有 Square POS)
    【解决方案2】:

    Square 现在添加了通过支付 API 添加小费的功能。

    见:https://developer.squareup.com/reference/square/payments-api/create-payment#request__property-tip_money

    【讨论】:

      猜你喜欢
      • 2014-12-13
      • 2021-11-23
      • 1970-01-01
      • 2020-05-11
      • 2019-09-13
      • 1970-01-01
      • 2013-10-25
      • 2014-12-22
      • 1970-01-01
      相关资源
      最近更新 更多