checkIfDocumentIsPayable

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 extractions contain an IBAN.

Return

true if the document is payable and false otherwise

Throws

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