← Questions
Split-tender payments with gift cards, surcharges and refunds
0
I was asked this
No reports yet. Sign in to say where you were asked it.
At a retail point of sale one purchase can be paid with several methods, for example part on a gift card and the rest on a credit card (a split-tender transaction). Write the code that processes a stream of payment events for such purchases and reports the outcome of each. Later parts add rules on top: gift cards that expire, a surcharge that depends on the ZIP code, and refunds that must go back to the right payment methods.
No official answer yet. Write yours on the right and run it.
Nothing published yet.
Sign in to submit your code; every attempt is kept here.
Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding
