【问题标题】:square connect api how to import fees to billing softwaresquare connect api如何将费用导入计费软件
【发布时间】:2019-07-16 15:28:06
【问题描述】:

有没有办法将在线处理客户交易时的平方处理费提取到我的计费软件中?

如果是,我可以在哪里以及如何检索它们?

【问题讨论】:

  • 我们使用的是 v2,使用 v1 支付端点是否会发生冲突?
  • 你提出了自己的问题,所以如果我没有偶然发现它,我就不会看到这个。不,没有冲突。

标签: api square-connect


【解决方案1】:

是的,使用v1 Payments endpoints 并查找processing_fee_money

【讨论】:

  • 我还需要使用 RetrieveTransaction 吗?
  • 这属于招标吗?
  • $result = $transaction_api->charge($access_token, $location_id, $request_body); $transaction_id = $result->getTransaction()->getId(); $url = 'example.com/modules/gateways/callback/squareup.php'; $hash = md5($_POST['invoice_id'].$transaction_id.$_POST['amount'].$_POST['secret_key']); $invoice_id = $_POST['invoice_id']; $fields = array('status' => urlencode("Success"), 'invoice_id' => urlencode($_POST['invoice_id']), 'trans_id' => urlencode($transaction_id), 'amount' => urlencode ($_POST['amount']), 'currency' => urlencode($_POST['currency']), 'hash' => urlencode($hash) );
  • 我如何在这个中使用 processing_fee。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2018-06-14
  • 2012-03-09
  • 1970-01-01
  • 1970-01-01
  • 2021-07-20
相关资源
最近更新 更多