我正在尝试构建一个Web应用程序,以便在启动付款的Android设备上使用。 我这样做是通过放置一个按钮并使用Intent架构,使用javascript。 它看起来像这样:
var intent = "intent:#Intent;action=com.squareup.pos.action.CHARGE;package=com.squareup;S.browser_fallback_url=" + payment.fallback_url + ";S.com.squareup.pos.WEB_CALLBACK_URI=" + payment.callback_url + ";S.com.squareup.pos.CLIENT_ID=" + payment.client_id + ";S.com.squareup.pos.API_VERSION=v2.0;i.com.squareup.pos.TOTAL_AMOUNT=" + payment.total_amount + ";S.com.squareup.pos.CURRENCY_CODE=" + payment.currency_code + ";S.com.squareup.pos.TENDER_TYPES=com.squareup.pos.TENDER_CARD;end"这个过程应尽可能无摩擦,因此我想跳过收据,并在交易完成后自动返回我的应用程序。 看起来这可以在iOS中使用额外的付款选项 - 但我不知道这是否在Android中可用。
有没有办法从Web应用程序传递此选项?
I'm trying to build a Web App for use on an Android device which initiates a payment. I'm doing this by placing a button and using the Intent schema, with javascript. It looks something like this:
var intent = "intent:#Intent;action=com.squareup.pos.action.CHARGE;package=com.squareup;S.browser_fallback_url=" + payment.fallback_url + ";S.com.squareup.pos.WEB_CALLBACK_URI=" + payment.callback_url + ";S.com.squareup.pos.CLIENT_ID=" + payment.client_id + ";S.com.squareup.pos.API_VERSION=v2.0;i.com.squareup.pos.TOTAL_AMOUNT=" + payment.total_amount + ";S.com.squareup.pos.CURRENCY_CODE=" + payment.currency_code + ";S.com.squareup.pos.TENDER_TYPES=com.squareup.pos.TENDER_CARD;end"The process should be as frictionless as possible, and therefore I'd like to skip the receipt, and automatically return to my app as soon as the transaction is done. Looks like this is possible in iOS with the additional payment options - but I don't see if that's available in Android.
Is there a way to pass this option from a web app?
最满意答案
Android上没有选项可以跳过POS API中的收据。 但是,您可以通过登录销售点,导航到设置 - >签名和收据并切换“跳过收据屏幕”选项来启用在每台设备上跳过收据。
There is no option yet on Android for skipping the receipt in the POS API. However, you can enable skipping a receipt on each device by logging into Point of Sale, navigating to Settings -> Signature and Receipt and toggling the "Skip Receipt Screen" option.
更多推荐
Android,payment,pos,squareup,电脑培训,计算机培训,IT培训"/> <meta name="
发布评论