def use_credit_card(self, credit_card):
        """
        Set up credit card info use (if necessary for transaction)
        """
        if hasattr(credit_card, '_exp_yr_style'): # here for gateways that like 2 digit expiration years
            credit_card.exp_year = credit_card.exp_year[-2:]

        for key, value in credit_card.__dict__.items():
            if not key.startswith('_'):
                try:
                    self.set(self.REQUEST_FIELDS[key], value)
                except __HOLE__:
                    pass # it is okay to fail (on exp_month & exp_year)
dataset/ETHPy150Open abunsen/Paython/paython/gateways/core.py/Gateway.use_credit_card