适用于 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 (将#修改为@)