Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install gocardless

How to install gocardless

  1. Download and install ActivePython
  2. Buy and install the Business Edition license from account.activestate.com
  3. Open Command Prompt
  4. Type pypm install gocardless

gocardless contains builds that are only available via PyPM when you have a current ActivePython Business Edition subscription.

 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.1.2
0.1.4Never BuiltWhy not?
0.1.2 Available View build log
Windows (64-bit)
0.1.2
0.1.4Never BuiltWhy not?
0.1.2 Available View build log
Mac OS X (10.5+)
0.1.2
0.1.4Never BuiltWhy not?
0.1.2 Available View build log
Linux (32-bit)
0.1.4
0.1.4 Available View build log
0.1.3 Available View build log
0.1.2 Available View build log
Linux (64-bit)
0.1.4
0.1.4 Available View build log
0.1.3 Available View build log
0.1.2 Available View build log
 
Author
License
MIT
Dependencies
Imports
https://s3-eu-west-1.amazonaws.com/gocardless/images/client-lib-headers/python-lib-header.png

This module provides a wrapper around the GoCardless payments API, the interface to the api is provided by the gocardless.Client object. See the documentation for that class for how to obtain an instance.

By default the library will attempt to use the GoCardless production environment, for testing purposes this is not what you want and you should set the gocardless.environment to "sandbox".:

>>> gocardless.environment = "sandbox"

Set your account details::

>>> gocardless.set_details(app_id="kzCOPw2JtJvRQxKOPEREQTGvxLvkoMS1Eb0Dgl5QVc1W0NKpOEZDvESfGOI_kkG2l",
>>>     app_secret="IO9AlgPsbYNCtFlcOFGROBrGB3Mi07PFYSn2zx4uK5xaWJI1AzwnYeC86x46ji_g",
>>>     access_token="5EFkzOrUOZ8t+iaP86NggIy+FOFSD0f7QMnMd+Q3P4mQk17Kzq9G1vYrNlEWFldlg",
>>>     merchant_id="02FX1YFDAS")

You can now use the gocardless.client object to generate urls for receiving payments.:

>>> gocardless.client.new_bill_url(10)

Users who click on this link will be taken to the GoCardless website to make a payment to your account.

You can also use it to query the api for information about payments resources using an active resource style API. For example, to get all of a merchants bills:

>>> merchant = client.merchant()
>>> merchant.bills()
>>> [<gocardless.resources.Bill at 0x29a6050>]

Contribute

Fork the repo then clone it to your machine and install in "develop" mode (preferably using a virtualenv):

mkvirtualenv gocardless
git clone https://github.com/<username>/gocardless-python
cd gocardless-python
python setup.py develop

Install the testing dependencies:

pip install -r requirements.txt

and run the test suite:

nosetests

Subscribe to package updates

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.