paystory-de / thermal-printer-cordova-plugin

Cordova wrapper for ESC/POS Thermal Printer library
Apache License 2.0
50 stars 39 forks source link

How To Trigger Open Cash Drawer ? #38

Open ryandan29 opened 1 year ago

ryandan29 commented 1 year ago

How To Trigger Kick Out Cash Drawer using Thermal printer connect with RJ11 cable to cashdrawer when After Printed?? using Bluetooth Connection..

ThermalPrinter.printFormattedText({
        type: 'bluetooth',
        id: 'first',
        mmFeedPaper:25,
        text: struk
}, function () {
});

i tried method printFormattedTextAndOpenCashBox(String text, float mmFeedPaper) but didnt work... Thank you, i love this plugin..

saaiful commented 1 year ago

The function printFormattedTextAndOpenCashBox has not been incorporated into this plugin.

mirulshahqube commented 1 year ago

Hi, so is there any way to open the cash drawer with this plugin after the thermal printer has printed

itsieber commented 1 year ago

I have added "onlyopencashbox" on Pullrequest few weeks ago: Added CashBox Support #51