Last active
September 26, 2017 15:38
-
-
Save ekelokorpi/545f07717939586f20e2f2e9fcdea33c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Amount amount = new Amount( | |
"USD", | |
total, | |
total, | |
0, | |
0, | |
"ROAM Discount", | |
0 | |
); | |
List<Product> products = new ArrayList<>(); | |
products.add( | |
new Product( | |
"Coffee Beans", | |
amount.getSubtotal(), | |
"Ethiopian Coffee Whole Beans", | |
null, | |
1 | |
) | |
); | |
CreditSaleTransactionRequest request = new CreditSaleTransactionRequest(amount, products, "0", "0", null); | |
ingenico.payment().processCreditSaleTransactionWithCardReader(request, new TransactionCallbackImpl()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment