def find_and_verify(self, token: str):
    "Finds a transaction with a matching token value and verifies it with Pay.ir.\n\n        When a transaction returns with status '1', it must be verified with Pay.ir. Otherwise, it will be returned to\n        the payer's bank account in 30 minutes. The method returns the updated transaction object and a boolean value.\n        The boolean value would be True if the `verified` flag of the transaction was switched to True. If the\n        `verified` attribute of transaction object and the returned boolean value do not match, the user might be trying\n        to confirm a payment for a second time.\n\n        :param token: The token of the transaction, which can be found in request.GET. The method will look for a\n        transaction object with the same token and return it as the first argument.\n        "
    transaction = Transaction.objects.get(token=token)
    return self.verify(transaction)
Finds a transaction with a matching token value and verifies it with Pay.ir.

When a transaction returns with status '1', it must be verified with Pay.ir. Otherwise, it will be returned to
the payer's bank account in 30 minutes. The method returns the updated transaction object and a boolean value.
The boolean value would be True if the `verified` flag of the transaction was switched to True. If the
`verified` attribute of transaction object and the returned boolean value do not match, the user might be trying
to confirm a payment for a second time.

:param token: The token of the transaction, which can be found in request.GET. The method will look for a
transaction object with the same token and return it as the first argument.
def find_and_verify(self, token: str):
    "Finds a transaction with a matching token value and verifies it with Pay.ir.\n\n        When a transaction returns with status '1', it must be verified with Pay.ir. Otherwise, it will be returned to\n        the payer's bank account in 30 minutes. The method returns the updated transaction object and a boolean value.\n        The boolean value would be True if the `verified` flag of the transaction was switched to True. If the\n        `verified` attribute of transaction object and the returned boolean value do not match, the user might be trying\n        to confirm a payment for a second time.\n\n        :param token: The token of the transaction, which can be found in request.GET. The method will look for a\n        transaction object with the same token and return it as the first argument.\n        "
    transaction = Transaction.objects.get(token=token)
    return self.verify(transaction)