receipt

How to print a cheque through the receipt printer in Java?

寵の児 提交于 2020-01-12 08:37:28
问题 I have pos58 receipt printer (printer made in China), this printer supports ESC-POS Commands . I want to print out a cheque in Java without JavaPos api. Just I don't know how do this. Is there some way to implement it? Or what the library is? Or are there any examples of that? Thanks for advance. 回答1: Found this implementation after a quick web search, may help: https://code.google.com/p/escprinter/source/browse/trunk/net/drayah/matrixprinter/ESCPrinter.java?r=2 来源: https://stackoverflow.com

SKReceiptRequest not calling (NSBundle that conforms to) SKRequestDelegate

こ雲淡風輕ζ 提交于 2020-01-05 06:42:17
问题 I am currently implementing local receipt validation following Apple's Receipt Validation Programming Guide . I have defined a category on NSBundle that conforms to SKRequestDelegate and that offers a method for receipt validation, which I call from inside main() before it initializes the application delegate and passes it to UIApplicationMain() . This is what the documentation says: Perform receipt validation immediately after your app is launched, before displaying any user interface or

How to improve speed with Receipt printer and ESC/POS commands in Java

倾然丶 夕夏残阳落幕 提交于 2020-01-02 06:19:32
问题 I have an application that communicates with a thermal printer in Java and makes the thermal printer print receipts with a barcode/emphasis/different sizes and so forth using a Star tsp 100 Printer. I can make the program print exaclty what i like but the printer is very slow. I believe the reason is that I am using non-preferable way/method of sending the byte commands. public static void Command(byte[] bytes) throws Exception{ //The bytes array is the argument, consisting of a byte[] array

Need to make a receipt which aligns item's prices (using javax.swing.* could import others if needed)

蹲街弑〆低调 提交于 2019-12-25 08:58:42
问题 I need to make a program that displays a receipt for any company. So, the user should enter the company name, date, time, name and price of four items purchased and the program should add the prices to arrive at the total and should display like the pic below. Here's what I have till now:- import javax.swing.*; public class Receipt { public static void main(String[] args) { String companyName; String itemName1; String itemName2; String itemName3; String itemName4; double item1; double item2;

Configuring a POS printer for remote printing

心不动则不痛 提交于 2019-12-24 20:20:09
问题 How can I configure a restaurant's POS printer to print orders from a web site? We have an online ordering web application, based on .NET/SQL. Once the order is submitted online, we want to print it on the POS printer in the restaurant. POS Printer - Epson TM-88V, or equivalent Printer is connected to internet directly(or through a router), but NOT through a PC! The online ordering system is Clorder (http://www.clorder.com) Any guidance is greatly appreciated. 回答1: You will need to configure

设计模式来替代if-else

旧巷老猫 提交于 2019-12-24 12:15:27
前言 # 物流行业中,通常会涉及到EDI报文(XML格式文件)传输和回执接收,每发送一份EDI报文,后续都会收到与之关联的回执(标识该数据在第三方系统中的流转状态)。这里枚举几种回执类型: MT1101、MT2101、MT4101、MT8104、MT8105、MT9999 ,系统在收到不同的回执报文后,会执行对应的业务逻辑处理。当然,实际业务场景并没有那么笼统,这里以 回执处理为演示案例 模拟一个回执类 Copy ``@Data public class Receipt { /** * 回执信息 */ String message; /** * 回执类型(`MT1101、MT2101、MT4101、MT8104、MT8105、MT9999`) */ String type; }`` 模拟一个回执生成器 Copy `public class ReceiptBuilder { public static List<Receipt> generateReceiptList(){ //直接模拟一堆回执对象 List<Receipt> receiptList = new ArrayList<>(); receiptList.add(new Receipt("我是MT2101回执喔","MT2101")); receiptList.add(new Receipt("我是MT1101回执喔",

iOS in-app purchase's receipt string explained

回眸只為那壹抹淺笑 提交于 2019-12-23 15:39:08
问题 I try to understand the receipt information obtained from iTunes server, but could not find relevant documentation. Particularly, what's the difference among unique_identifier , unique_vendor_identifier , original_transaction_id (which is claimed, in a WWDC'12 session, to be a de facto customer id) and [[[UIDevice currentDevice] identifierForVendor] UUIDString] ? {"receipt": {"original_purchase_date_pst":"...", "purchase_date_ms":"...", "unique_identifier":"...", "original_transaction_id":"..

ios 8, Swift, receipt validation for IAP

自闭症网瘾萝莉.ら 提交于 2019-12-21 20:24:37
问题 i'm desperately trying to validate a receipt for in-app in a futur IOS application written with Swift, IOS8.1 I'm using the Alamofire framework to compensate a bug in NSURLConnection for swift but still not having any return from the Apple Server. func checkReceipt(data:NSData) { let ITMS_PROD_VERIFY_RECEIPT_URL = "https://buy.itunes.apple.com/verifyReceipt" let ITMS_SANDBOX_VERIFY_RECEIPT_URL = "https://sandbox.itunes.apple.com/verifyReceipt" let base64String = self.base64forData(data) if

Add space between HTML elements only using CSS

大兔子大兔子 提交于 2019-12-18 10:01:06
问题 I have several same HTML elements going one after another: <span>1</span> <span>2</span> <span>3</span> I'm looking for the best way of adding space BETWEEN the elements using CSS only [no space] [1] [space 10px] [2] [space 10px] [3] [no space] Additionally: Please write down browser compatibility of your receipts UPDATE It looks like I was unclear. I don't want to use ANY ADDITIONAL HTML MARKUP like <span></span> <span></span> <span class="last_span"></span> I don't want to use tables I want

Star micronics mpop iOS SDK - Save and print a character using the blank code page

一个人想着一个人 提交于 2019-12-14 00:26:16
问题 I have the star micronics mpop. I have read the documentation (http://www.starmicronics.com/support/mannualfolder/starprnt_cm_en.pdf) Section 2-8 states that you can write to the blank code page. I have followed these instructions but I am still unable to get it to print as intended. I contacted support but they basically told me to use trial and error as they didn't know. It always seems to prints a string of characters. Below is the sample code I am using, just for testing i'm sending a