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

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

src/d/j/django-oscar-unicredit-0.1/unicredit/views.py   django-oscar-unicredit(Download)
from django.db.models import get_model
 
from oscar.apps.checkout.views import RedirectRequired, PaymentError, OrderPlacementMixin
from oscar.apps.checkout.views import PaymentDetailsView, ThankYouView
 
        try:
            url = self._get_redirect_url(order_number, total, **kwargs)
            raise RedirectRequired(url)
        except UnicreditError:
            raise PaymentError("Attenzione. C'e' stato un errore dutante la comunicazione con Unicredit")