def get_card_suffix(user)
      card_number = nil
      if user.valid_authnet_payment_profile_id && user.authnet_payment_profile_id
        resp = self.gateway.get_customer_payment_profile({
          :customer_profile_id => user.authnet_customer_profile_id.to_i,
          :customer_payment_profile_id => user.authnet_payment_profile_id.to_i
        })            
        if resp.success? && resp.params['payment_profile'] && resp.params['payment_profile']['payment'] && resp.params['payment_profile']['payment']['credit_card'] && resp.params['payment_profile']['payment']['credit_card']['card_number']                         
          card_number = resp.params['payment_profile']['payment']['credit_card']['card_number'].gsub('X', '')         
        end
      end    
      return card_number
    end
def get_card_suffix(user)
      card_number = nil
      if user.valid_authnet_payment_profile_id && user.authnet_payment_profile_id
        resp = self.gateway.get_customer_payment_profile({
          :customer_profile_id => user.authnet_customer_profile_id.to_i,
          :customer_payment_profile_id => user.authnet_payment_profile_id.to_i
        })            
        if resp.success? && resp.params['payment_profile'] && resp.params['payment_profile']['payment'] && resp.params['payment_profile']['payment']['credit_card'] && resp.params['payment_profile']['payment']['credit_card']['card_number']                         
          card_number = resp.params['payment_profile']['payment']['credit_card']['card_number'].gsub('X', '')         
        end
      end    
      return card_number
    end
=============================================================================
 Get card number from profile
=============================================================================