Skip to content

Instantly share code, notes, and snippets.

@ekelokorpi
Last active September 26, 2017 15:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ekelokorpi/545f07717939586f20e2f2e9fcdea33c to your computer and use it in GitHub Desktop.
Save ekelokorpi/545f07717939586f20e2f2e9fcdea33c to your computer and use it in GitHub Desktop.
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