This will remove imports from __future__ that are no longer needed. https://docs.python.org/3.5/library/2to3.html#2to3fixer-future
32 lines
518 B
Python
32 lines
518 B
Python
"""
|
|
Payment processing exceptions
|
|
"""
|
|
|
|
|
|
from shoppingcart.exceptions import PaymentException
|
|
|
|
|
|
class CCProcessorException(PaymentException):
|
|
pass
|
|
|
|
|
|
class CCProcessorSignatureException(CCProcessorException):
|
|
pass
|
|
|
|
|
|
class CCProcessorDataException(CCProcessorException):
|
|
pass
|
|
|
|
|
|
class CCProcessorWrongAmountException(CCProcessorException):
|
|
pass
|
|
|
|
|
|
class CCProcessorUserCancelled(CCProcessorException):
|
|
pass
|
|
|
|
|
|
class CCProcessorUserDeclined(CCProcessorException):
|
|
"""Transaction declined."""
|
|
pass
|