Did I find the right examples for you? yes no

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)
PaymentException base class.

src/p/a/PayPy-0.6/paypy/payment.py   PayPy(Download)
"""
 
from paypy.exceptions.payment import PaymentException
 
ADAPTERS = ('authnet', 'google', 'paypal')
    def __init__(self, configuration, adapter='authnet'):
 
        # A adapter must be specified
        if not adapter:
            raise PaymentException('You must specify a gateway adapter')
        # Is the driver allowed?
        if adapter not in ADAPTERS:
            raise PaymentException('The configured adapter is not supported')
 
        # Lazy load