diff --git a/payments/core.py b/payments/core.py index 922001605..8b8ff0c97 100644 --- a/payments/core.py +++ b/payments/core.py @@ -155,14 +155,14 @@ def autocomplete_with_subscription(self, payment): Throws RedirectNeeded if there is problem with the payment that needs to be solved by user. """ - raise NotImplementedError() + raise NotImplementedError def cancel_subscription(self, subscription): """ Cancel subscription Used by providers, that use provider initiated cancellation workflow """ - raise NotImplementedError() + raise NotImplementedError def capture(self, payment, amount=None): raise NotImplementedError diff --git a/payments/models.py b/payments/models.py index 046329d99..e26da1fbb 100644 --- a/payments/models.py +++ b/payments/models.py @@ -1,7 +1,7 @@ from __future__ import annotations -import json import enum +import json from typing import Iterable from uuid import uuid4 @@ -77,10 +77,10 @@ def set_recurrence(self, token: str, **kwargs): self.subscribtion_data = kwargs def get_period(self) -> int: - raise NotImplementedError() + raise NotImplementedError def get_unit(self) -> TimeUnit: - raise NotImplementedError() + raise NotImplementedError def cancel(self): """ @@ -249,7 +249,7 @@ def get_payment_url(self) -> str: (payment_details() in documentation) For now used only by PayU provider to redirect users back to CVV2 form """ - raise NotImplementedError() + raise NotImplementedError def get_subscription(self) -> BaseSubscription | None: """