Adding decline button in fake payment page. In of case ERROR, CANCEL, and DECLINE removing auth_amount from test cybersource2 and payment fake.
27 lines
478 B
Python
27 lines
478 B
Python
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
|