This project aims to implementing pending coffee functionality using the Tangem SDK and smart contracts. See this presentation for details. It is still under very early development and has limited functionality.
To run it, open
app/build.gradle on Android Studio.
The intended use case is as follows:
1.) With an app that uses the Tangem Android SDK, customers purchase some number of coffees and some number of pending coffees. The customer doesn't receive their pending coffees, despite paying for them. This uses the Tangem SDK to send the cryptocurrency to a smart contract that forwards the appropriate amount to the café's wallet and retains the amount for pending coffees.
2.) Later on, the café can give the pending coffees away for free to those less fortunate who come in asking for a coffee. When they do so, they withdraw the cost of the pending coffee from the smart contract.
3.) The original customer gets notified that someone availed of their pending coffee.
Many thanks to https://github.com/blockdevsasia/tangem-workshop-solution for useful starter code in interfacing with the Tangem Android SDK.