def credit(self, money, identification, options=None):
        if not options:
            options = {}
        post = {}
        post["trans_id"] = identification
        # Authorize.Net requuires the card or the last 4 digits be sent
        post["card_num"] = options["credit_card"]
        post.update(options)

        response = self.commit("CREDIT", money, post)
        status = "SUCCESS"
        if response.response_code != 1:
            status = "FAILURE"
            transaction_was_unsuccessful.send(sender=self,
                                              type="credit",
                                              response=response)
        else:
            transaction_was_successful.send(sender=self,
                                            type="credit",
                                            response=response)
        return {"status": status, "response": response}
Task.active (property): false if active file not found.
dataset/ETHPy150Open agiliq/merchant/billing/gateways/authorize_net_gateway.py/AuthorizeNetGateway.credit--crossover with--dataset/ETHPy150Open xtrementl/focus/tests/unit/test_task.py/TestTask.testNoActiveFile__active