微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

适用于 Android 的 Square Mobile Web API 给出“不支持的 API 版本”当前 API 的正确版本号是多少?

如何解决适用于 Android 的 Square Mobile Web API 给出“不支持的 API 版本”当前 API 的正确版本号是多少?

我们正在尝试支持 Square Mobile Web API 以处理来自移动网络 POS 系统的费用。正如 Square (https://developer.squareup.com/docs/pos-api/web-technical-reference) 所记录的那样,该 API 似乎很简单。示例代码使用 S.com.squareup.pos.API_VERSION=v2.0,我们已经尝试过这个和其他更高的数字,但总是得到:

不支持的 API 版本 - 安装的 Square 版本太旧。 它不支持此版本的销售点 SDK。

我们正在运行最新版本的 Square 应用程序 (5.56.1)。我们也尝试过 v2.0-2020-12-16 格式的版本号。

我已将其提炼为单个链接作为示例。有谁知道正确的版本参数应该是什么或看到其他错误?谢谢!

<A HREF="intent:#Intent;action=com.squareup.pos.action.CHARGE;S.com.squareup.pos.REQUEST_MetaDATA=341;S.com.squareup.pos.LOCATION_ID=...;package=com.squareup;S.browser_fallback_url=https://.../takeorder/install;S.com.squareup.register.WEB_CALLBACK_URI=https://.../takeorder/square;S.com.squareup.register.CLIENT_ID=....;S.com.squareup.register.API_VERSION=V2.0;i.com.squareup.register.TOTAL_AMOUNT=1;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">

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。