code: def confirm(self, token=None):
          
          _token = token if token else self._response.get("token")
          return self._process('checkout-invoice/confirm/' + str(_token))
docs: Returns the status of the invoice
  
          STATUSES: pending, completed, cancelled