如何从广场REQUEST_METADATA?
How to REQUEST_METADATA from Square?
我正在使用网络 api Android 给 Square 打电话。交易的响应给了我CLIENT_TRANSACTION_ID
。我想知道其他信息,例如交易金额和找零以及我在收据电子邮件中看到的信息。我看不到如何在触发意图时给 S.com.squareup.register.REQUEST_METADATA
一个值,以便我可以得到 S.com.squareup.register.RESULT_REQUEST_METADATA
作为响应。此外,我们可以根据此键为 api 平方提供哪些可选值。代码如下
<a href="intent:#Intent;action=com.squareup.register.action.CHARGE;package=com.squareup;S.browser_fallback_url=https://2f857915.ngrok.io/square_callback;S.com.squareup.register.WEB_CALLBACK_URI=https://2f857915.ngrok.io/square_callback;S.com.squareup.register.CLIENT_ID=sq0idp-6Lo2W9zX8K9b08zKxmfUtw;S.com.squareup.register.API_VERSION=v1.3;i.com.squareup.register.TOTAL_AMOUNT=100;S.com.squareup.register.CURRENCY_CODE=USD;S.com.squareup.register.TENDER_TYPES=com.squareup.register.TENDER_CARD,com.squareup.register.TENDER_CARD_ON_FILE,com.squareup.register.TENDER_CASH,com.squareup.register.TENDER_OTHER;end;">Charge With Square</a>
我想获得有关这笔付款的信息,以便在我的申请中使用。例如付款完成、付款货币、税金等
您需要使用 Retrieve Transaction 端点将该 ID 转换为附加信息。请注意,如果您不处理卡,您应该只得到 CLIENT_TRANSACTION_ID
,如果您处理卡付款,您应该得到 SERVER_TRANSACTION_ID
我正在使用网络 api Android 给 Square 打电话。交易的响应给了我CLIENT_TRANSACTION_ID
。我想知道其他信息,例如交易金额和找零以及我在收据电子邮件中看到的信息。我看不到如何在触发意图时给 S.com.squareup.register.REQUEST_METADATA
一个值,以便我可以得到 S.com.squareup.register.RESULT_REQUEST_METADATA
作为响应。此外,我们可以根据此键为 api 平方提供哪些可选值。代码如下
<a href="intent:#Intent;action=com.squareup.register.action.CHARGE;package=com.squareup;S.browser_fallback_url=https://2f857915.ngrok.io/square_callback;S.com.squareup.register.WEB_CALLBACK_URI=https://2f857915.ngrok.io/square_callback;S.com.squareup.register.CLIENT_ID=sq0idp-6Lo2W9zX8K9b08zKxmfUtw;S.com.squareup.register.API_VERSION=v1.3;i.com.squareup.register.TOTAL_AMOUNT=100;S.com.squareup.register.CURRENCY_CODE=USD;S.com.squareup.register.TENDER_TYPES=com.squareup.register.TENDER_CARD,com.squareup.register.TENDER_CARD_ON_FILE,com.squareup.register.TENDER_CASH,com.squareup.register.TENDER_OTHER;end;">Charge With Square</a>
我想获得有关这笔付款的信息,以便在我的申请中使用。例如付款完成、付款货币、税金等
您需要使用 Retrieve Transaction 端点将该 ID 转换为附加信息。请注意,如果您不处理卡,您应该只得到 CLIENT_TRANSACTION_ID
,如果您处理卡付款,您应该得到 SERVER_TRANSACTION_ID