15 lines
342 B
Python
15 lines
342 B
Python
from payments.models import Transaction
|
|
|
|
|
|
class UnknownGatewayError(Exception):
|
|
pass
|
|
|
|
|
|
class AbstractGateway:
|
|
@staticmethod
|
|
def process_transaction(transaction: Transaction) -> None:
|
|
raise NotImplementedError
|
|
|
|
@staticmethod
|
|
def process_callback(transaction: Transaction) -> None:
|
|
raise NotImplementedError
|