Square PoS Android Web auto

编程入门 行业动态 更新时间:2024-10-28 18:32:19
Square PoS Android Web auto_return(Square PoS Android Web auto_return)

我正在尝试构建一个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="

本文发布于:2023-08-06 17:02:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1453002.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:PoS   Square   Android   auto   Web

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!