Offline Payment Queue
interface OfflinePaymentQueue
A queue of offline payments taken on this device that have not yet been uploaded to the Square server.
Functions
Link copied to clipboard
Fetches all offline payments from local storage. If the fetch is successful, the provided callback is called with the result - a list of OfflinePayment. In case of failure, an error message is provided.
Link copied to clipboard
Returns the sum of all stored (and not uploaded yet) offline payments with the same location as the current one. If amount is -1
, then there was an issue getting the amount from the database.