# OfflinePaymentQueue

interface OfflinePaymentQueue

A queue of offline payments taken on this device that have not yet been uploaded to the Square server.

## Functions

getPayments
Link copied to clipboard
abstract fun getPayments(callback: Callback<GetOfflinePaymentsResult>): CallbackReference

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.

getTotalStoredPaymentAmount
Link copied to clipboard
abstract fun getTotalStoredPaymentAmount(): GetTotalStoredPaymentAmountResult

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.