我在 Dev channel (v 60.x) 中使用 Acer Chromebook R11 使用 Square 开发 HTML5 POS 应用程序。我正在尝试使用超链接触发基本的 Android Intent ,如下所示:
<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 参数与任何预期的网络回调 URI 都不匹配。
这是什么意思?
最佳答案
您是否已在仪表板中设置网络回调?如果不是,请按此操作。
转到您的应用仪表板 https://connect.squareup.com/apps
点击您的应用,然后点击“销售点 API”
将所需的
WEB_CALLBACK_URI
放在页面底部您看到“Web Callback URLs”的位置,然后点击“保存”。
关于android - WEB_CALLBACK_URI 与预期的 URI 不匹配 Square POS API,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44448544/