32 lines
556 B
Python
32 lines
556 B
Python
"""
|
|
Payment processing exceptions
|
|
"""
|
|
from __future__ import absolute_import
|
|
|
|
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
|