manual.py 523 B

1234567891011121314151617181920212223
  1. # -*- coding: utf-8 -*-
  2. # !/usr/bin/env python
  3. import logging
  4. from typing import TYPE_CHECKING
  5. from apps.web.core.payment import PaymentGateway
  6. if TYPE_CHECKING:
  7. pass
  8. logger = logging.getLogger(__name__)
  9. class ManualPaymentGateway(PaymentGateway):
  10. def __init__(self, app, gateway_type):
  11. super(ManualPaymentGateway, self).__init__(app)
  12. self.__gateway_type__ = gateway_type
  13. def __repr__(self):
  14. return '<ManualPaymentGateway(occupantId = %s)>' % (
  15. str(self.occupantId))