checkIfDocumentIsPayable

public final Boolean checkIfDocumentIsPayable(String documentId)

Checks whether the document is payable by fetching the document and its extractions from the Gini Pay API and verifying that the extraction's payment state is "Payable".

Return

true if the document is payable and false otherwise

Throws

if there was an error while retrieving the document or the extractions