Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
65 lines (46 sloc) 1.66 KB


Integration of Cartridge/Mezzanine with payment providers that requires to redirect the buyer on a form on their platform.


Working in your project's virtualenv:

git clone
cd cartridge-external-payment
python install


Add 'cartridge_external_payment' to your settings.INSTALLED_APPS, before ''

Order Form

Set the alternative OrderForm class for the checkout process (see cartridge documentation):

SHOP_CHECKOUT_FORM_CLASS = 'cartridge_external_payment.forms.ExternalPaymentOrderForm'

Order Form

Add an extra field to the Order, so we can follow which order has been payed succesfully

            (u"Payment effectué",),
            {"default": False},


You must includes the cartridge_external_payment urls in your urls configuration file, before the cartridge inclusion :

urlpatterns = patterns("",
	("^shop/", include("cartridge_external_payment.urls")),
	("^shop/", include("")),

Payment provider connector

You must define the connector that will allows to start the payment process and retrieve order datas when the buyer comes back. The connector should implements the providers.base.PaymentProvider interface.

SHOP_PAYMENT_PROVIDER = 'cartridge_external_payments.providers.be2bill.Be2BillProvider'

You can find an exemple implementation by looking at the providers directory.