def METHOD_NAME(self, transaction):
    transaction_service = self._get_transaction_service_api()
    merchant_transaction = transaction_service.read(
        self.space_id, transaction.transaction_id
    )
    return merchant_transaction.state