(self, card, billing_account, domain)
Sets the auto_pay status on the card for a billing account

        If there are other cards that auto_pay for that billing account, remove them
Sets the auto_pay status on the card for a billing account
Sets the auto_pay status on the card for a billing account
def set_autopay(self, card, billing_account, domain):
        """
        Sets the auto_pay status on the card for a billing account

        If there are other cards that auto_pay for that billing account, remove them
        """
        if billing_account.auto_pay_enabled:
            self._remove_other_auto_pay_cards(billing_account)

        self._update_autopay_status(card, billing_account, autopay=True)
        billing_account.update_autopay_user(self.web_user, domain)
def set_autopay ( self , card , billing_account , domain ) : if billing_account . auto_pay_enabled : self . _remove_other_auto_pay_cards ( billing_account ) self . _update_autopay_status ( card , billing_account , autopay = True ) billing_account . update_autopay_user ( self . web_user , domain )