When I empty the cart during the pay() function, the cart still appears full.
If I add an item, the cart refreshes and shows that the cart only contains that item.
After looking at the front.js file, I found that the section that handles the '.pay' button doesn't redraw the cart or checkout UI. I forked the original repo and added drawCart() and drawCheckout() to this section and now the UI shows the empty cart after a full payment.
To make things simple, I created the following pull request: #26
With this change to the base repo, this issue should be fixed.