Appendix C - EMV Transaction Flow
MagTek Universal SDK| For MMS Devices | Programmer’s Manual ( Java )
Page 56
C.2
Sample Flow Code
The following breaks out the EMV flow chart into code.
// #1
// Assign parameters.
List<PaymentMethod> paymentMethod = new ArrayList<PaymentMethod>();
paymentMethod.Add(PaymentMethod.MSR);
paymentMethod.Add(PaymentMethod.Contact);
paymentMethod.Add(PaymentMethod.Contactless);
Transaction transaction = new Transaction();
transaction.setAmount(“1.00”);
transaction.setCashBack(“0.00”);
transaction.setEMVOnly(true);
transaction.setPaymentMethods(paymentMethod);
transaction.setQuickChip(false);
// Start transaction.
boolean result = device.startTransaction(transaction);