Skip to content

A Complete Multi-tender Sale

This chapter lets you catch your breath a bit by providing a review of all the topics that have come before. Specifically, the sample code provides a complete implementation of a sale, from initialization of the EposSDK object right through to a Sale Response. The only wrinkle here is that we now demonstrate a sale where the consumer pays with both cash and card. (They're a bit tight for cash!). So the example shows how to put 5 € onto a card and 5 € on cash. Not so likely in the world, but a great review of what we have learned so far.

The User Interface

Here's a summary of the user interaction where they pay 5 € cash and they put 5 € on a credit card:

Tip

Just like in the previous chapter, it is recommended you read the bottom lines of code first to see the overall payment flow.

The Sample Code

ObjC

Swift

Universal Windows Platform SDK coming soon