GithubHelp home page GithubHelp logo

Comments (5)

pavlenex avatar pavlenex commented on June 11, 2024 3

"Opening receipt triggers printing"

How about "instantly trigger receipt printing"?

from btcpayserver.

dennisreimann avatar dennisreimann commented on June 11, 2024

I'm not sure we can implement this, as mobile browsers oftentimes require user interaction to trigger those actions. Will investigate — sounds like a good follow-up to #5077.

from btcpayserver.

pavlenex avatar pavlenex commented on June 11, 2024

Thanks @dennisreimann do you want me to tag this for 1.11 or should we keep it on the roadmap and determine after you investigate, sounds like the later approach is better? Quick search and I found this, unsure how helpful it actually is.

from btcpayserver.

Shine3488 avatar Shine3488 commented on June 11, 2024

Great

from btcpayserver.

dennisreimann avatar dennisreimann commented on June 11, 2024

@pavlenex With #5077 I created a separate receipt view, which is supposed to be customized for printing on thermal printers (text-only version) like with the Sunmi devices. That view is opened via the "Print" link on the receipt and directly triggers the printing dialog to come up — we cannot skip that dialog and start printing right away though.

Manually printing the standard receipt view gives the full HTML print view as we had before.

So basically I think this is very store/use case specific and I think we will need to make it configurable, because we cannot foresee what the use case will be. We have these receipt options in the Checkout Appearance already:

grafik

I think we might add a fourth option "Opening receipt triggers printing" — if that's activated we can also let the merchant decide, if this should trigger printing the HTML or text-only version.

from btcpayserver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.