mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-12-25 08:23:46 +00:00
12 lines
418 B
Python
12 lines
418 B
Python
|
class PaymentMethodMixin:
|
||
|
"""The base class for payment models. They should inherit from this."""
|
||
|
|
||
|
def end_payment(self, invoice, request):
|
||
|
"""Redefine this method in order to get a different ending to the
|
||
|
payment session if you whish.
|
||
|
|
||
|
Must return a HttpResponse-like object.
|
||
|
"""
|
||
|
return self.payment.end_payment(
|
||
|
invoice, request, use_payment_method=False)
|