WEB_CALLBACK_URI 与预期的 URI 不匹配 Square POS API

WEB_CALLBACK_URI Does Not Match Expected URIs Square POS API

我在 Dev 频道 (v 60.x) 中使用 Acer Chromebook R11 来使用 Square 开发 HTML5 POS 应用程序。我正在尝试使用超链接触发基本 Android 意图,如下所示:

<a target="_blank" href="intent:#Intent;action=com.squareup.pos.action.CHARGE;package=com.squareup;S.browser_fallback_url=**my website**;S.com.squareup.pos.WEB_CALLBACK_URI=**my website's main index.php* file*;S.com.squareup.pos.CLIENT_ID=**my ID**;S.com.squareup.pos.API_VERSION=v2.0;i.com.squareup.pos.TOTAL_AMOUNT=100;S.com.squareup.pos.CURRENCY_CODE=USD;S.com.squareup.pos.TENDER_TYPES=com.squareup.pos.TENDER_CARD,com.squareup.pos.TENDER_CARD_ON_FILE,com.squareup.pos.TENDER_CASH,com.squareup.pos.TENDER_OTHER;end">Send me $</a>

Square POS 出现以下错误:WEB_CALLBACK_URI 参数与任何预期的 Web 回调 URI 都不匹配。

这到底是什么意思?

您在仪表板中设置网络回调了吗?如果不是这里是如何。


  1. 转到您的应用仪表板https://connect.squareup.com/apps

  2. 点击您的应用,然后 "Point of Sale API"

  3. 将您想要的WEB_CALLBACK_URI放在您看到"Web Callback URLs"的页面底部,然后单击"Save"。