Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(19)  |  Call(9)  |  Derive(1)  |  Import(9)

src/d/j/django-oscar-paypal-0.8.1/paypal/express/views.py   django-oscar-paypal(Download)
 
from oscar.apps.checkout.views import PaymentDetailsView, CheckoutSessionMixin
from oscar.apps.payment.exceptions import PaymentError, UnableToTakePayment
from oscar.apps.payment.models import SourceType, Source
from oscar.core.loading import get_class
        except KeyError:
            raise PaymentError(
                "Unable to determine PayPal transaction details")
 
        try:

src/d/j/django-oscar-paypal-0.8.1/paypal/payflow/facade.py   django-oscar-paypal(Download)
    txn = gateway.void(order_number, pnref)
    if not txn.is_approved:
        raise exceptions.PaymentError(txn.respmsg)
    return txn
 
    txn = gateway.credit(order_number, pnref, amt)
    if not txn.is_approved:
        raise exceptions.PaymentError(txn.respmsg)
    return txn
 

src/d/j/django-oscar-paypal-HEAD/paypal/payflow/facade.py   django-oscar-paypal(Download)
    txn = gateway.void(order_number, pnref)
    if not txn.is_approved:
        raise exceptions.PaymentError(txn.respmsg)
    return txn
 
    txn = gateway.credit(order_number, pnref, amt)
    if not txn.is_approved:
        raise exceptions.PaymentError(txn.respmsg)
    return txn
 

src/o/s/oscar-sagepay-0.1/sagepay/facade.py   oscar-sagepay(Download)
from django.db.models import get_model
 
from oscar.apps.payment.exceptions import PaymentError, InvalidGatewayRequestError
 
from .gateway import Gateway
                raise InvalidGatewayRequestError('Sage server wrong request, this should happen in development only: %s' % response)
        except GatewayException:
            raise PaymentError('Unable to contact SagePay server')
 
 

src/d/j/django-oscar-gocardless-HEAD/oscar_gocardless/facade.py   django-oscar-gocardless(Download)
from django.core.urlresolvers import reverse
import gocardless
from gocardless.exceptions import SignatureError, ClientError
from oscar.apps.payment.exceptions import PaymentError
 
        gocardless.client.confirm_resource(params)
    except SignatureError:
        raise PaymentError("Invalid signature")
    except ClientError:
        raise PaymentError("An error occurred communicating with payment gateway")

src/d/j/django-oscar-HEAD/sites/demo/apps/order/processing.py   django-oscar(Download)
        if transactions.count() == 0:
            raise exceptions.PaymentError(
                "Unable to take payment as no PRE-AUTH "
                "transaction found for this order")
        return transactions[0]

src/d/j/django-oscar-unicredit-0.1/unicredit/exceptions.py   django-oscar-unicredit(Download)
from oscar.apps.payment.exceptions import PaymentError
 
class UnicreditError(PaymentError):
    pass
 

src/d/j/django-oscar-paypal-0.8.1/paypal/exceptions.py   django-oscar-paypal(Download)
try:
    from oscar.apps.payment.exceptions import PaymentError
except ImportError:
    class PaymentError(Exception):
        pass

src/d/j/django-oscar-HEAD/oscar/apps/dashboard/orders/views.py   django-oscar(Download)
from oscar.views import sort_queryset
from oscar.views.generic import BulkEditMixin
from oscar.apps.payment.exceptions import PaymentError
from oscar.apps.order.exceptions import (
    InvalidShippingEvent, InvalidStatus, InvalidPaymentEvent)

src/d/j/django-oscar-paypal-HEAD/paypal/exceptions.py   django-oscar-paypal(Download)
try:
    from oscar.apps.payment.exceptions import PaymentError
except ImportError:
    class PaymentError(Exception):
        pass

  1 | 2  Next