Django-Mangopay is a Django wrapper for the
PSP Mangopay's V2 API. More
specifically it provides Django-specfic functionality around Mangopay's Python
SDK. It creates a Mangopay
Client via settings in your settings.py
. It provides Django Models that allow
you to persist the data that you need to send and recieve from Mangopay. These
models have functions that correspond to the Mangopay's API calls. Celery tasks
are also provided if you want to call these functions asynchronously. Read
extended documentation is provide at Read the Docs.
- Install package from PyPI:
pip install django-mangopay
- Create a test client
- Add your newly created client id and password to your django settings.
from mangopay.client import get_mangopay_api_client client = get_mangopay_api_client() client.users.GetAll() [<mangopaysdk.entities.usernatural.UserNatural object at 0x5e33c50>]
django.conf.settings.MANGOPAY_CLIENT_ID
The client id you made up when you created your mangopay account.
django.conf.settings.MANGOPAY_PASSPHRASE
The passphase you recieved when you set up your client.
django.conf.settings.MANGOPAY_DEBUG_MODE
0 or 1