UNSUPPORTED_API_VERSION 使用方网 api 和 android 的错误代码
UNSUPPORTED_API_VERSION error code using square web api with android
使用 Square web api(Android) returns 在给定 WEB_CALLBACK_URI 上开始交易,其中 error_code
作为 UNSUPPORTED_API_VERSION
和 error_description
作为 "The installed version of square point of sales is too old. It doesn't support this version of the point of sale SDK"
我安装了最新的Square app Version=4.57
我在 html 页面上使用了以下代码
<a href="intent:#Intent;
action=com.squareup.register.action.CHARGE;package=com.squareup;
S.browser_fallback_url=http://08e71683.ngrok.io;
S.com.squareup.register.WEB_CALLBACK_URI=http://08e71683.ngrok.io/abc;
S.com.squareup.register.CLIENT_ID=sandbox-sq0idp-6Lo2W9zX8K9b08zKxmfUtw;
S.com.squareup.register.API_VERSION=v2;
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">
Send me $
</a>
我尝试了很多关于 google 的解决方案,但找不到。希望有人帮忙
我认为您的问题是您正在尝试使用不存在的销售点版本 API。 Chagne S.com.squareup.register.API_VERSION=v2;
到 S.com.squareup.register.API_VERSION=v1.3;
看看你是否成功。
使用 Square web api(Android) returns 在给定 WEB_CALLBACK_URI 上开始交易,其中 error_code
作为 UNSUPPORTED_API_VERSION
和 error_description
作为 "The installed version of square point of sales is too old. It doesn't support this version of the point of sale SDK"
我安装了最新的Square app Version=4.57
我在 html 页面上使用了以下代码
<a href="intent:#Intent;
action=com.squareup.register.action.CHARGE;package=com.squareup;
S.browser_fallback_url=http://08e71683.ngrok.io;
S.com.squareup.register.WEB_CALLBACK_URI=http://08e71683.ngrok.io/abc;
S.com.squareup.register.CLIENT_ID=sandbox-sq0idp-6Lo2W9zX8K9b08zKxmfUtw;
S.com.squareup.register.API_VERSION=v2;
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">
Send me $
</a>
我尝试了很多关于 google 的解决方案,但找不到。希望有人帮忙
我认为您的问题是您正在尝试使用不存在的销售点版本 API。 Chagne S.com.squareup.register.API_VERSION=v2;
到 S.com.squareup.register.API_VERSION=v1.3;
看看你是否成功。