provider.maxReceiptLineLength = 40;
NSLog(@"Merchant Receipt"); for (NSString *line in transaction.merchantReceipt.lines) { NSLog(@"%@", line); } NSLog(@"Customer Receipt"); for (NSString *line in transaction.customerReceipt.lines) { NSLog(@"%@", line); }
transactionProvider.setMaxReceiptLineLength(40);
TransactionProcess paymentProcess = transactionProvider.startTransaction(transactionParameters, accessoryParameters, new TransactionProcessWithRegistrationListener() { @Override public void onCompleted(TransactionProcess process, Transaction transaction, TransactionProcessDetails processDetails) { // For merchant Receipt Receipt merchantReceipt = transaction.getMerchantReceipt(); System.out.println("Merchant Receipt"); for (String line : merchantReceipt.getLines()) { System.out.println(line); } // For customer Receipt Receipt customerReceipt = transaction.getCustomerReceipt(); System.out.println("Customer Receipt"); for (String line : customerReceipt.getLines()) { System.out.println(line); } } } );