Skip to content

Commit

Permalink
chore(viewmodels): remove unused PaymentProcessor
Browse files Browse the repository at this point in the history
  • Loading branch information
thekaveman committed Jul 7, 2023
1 parent 845e915 commit d56554a
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions benefits/core/viewmodels.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,33 +249,6 @@ def not_found(
return ErrorPage(title=title, headline=headline, paragraphs=paragraphs, **kwargs)


class PaymentProcessor:
"""
Represents a core.models.PaymentProcessor:
* model: core.models.PaymentProcessor
* access_token_url: str
* element_id: str
* color: str
* [name: str]
* [loading_text: str]
"""

def __init__(self, model, access_token_url, element_id, color, name=None, loading_text=_("core.buttons.wait")):
if isinstance(model, models.PaymentProcessor):
self.access_token_url = access_token_url
self.element_id = element_id
self.color = color
self.name = name or model.name
self.loading_text = loading_text
self.card_tokenize_url = model.card_tokenize_url
self.card_tokenize_func = model.card_tokenize_func
self.card_tokenize_env = model.card_tokenize_env

def context_dict(self):
"""Return a context dict for a PaymentProcessor."""
return {"payment_processor": self}


class TransitAgency:
"""
Represents a core.models.TransitAgency:
Expand Down

0 comments on commit d56554a

Please sign in to comment.