Thin python wrapper around mCASH's merchant api
A SDK used to make communication with mCASH’s merchant API easier. A basic usage example is shown in mapi_client_example.
Before using this client
- Be aware that this client is in beta. Backwards incompatible changes should not occur, but updates might be frequent. Comments and pull requests are welcome.
- Make sure you are familiar with the documentation, found at: http://dev.mca.sh/merchant/. Consider reading the tutorials at http://dev.mca.sh/tutorials/.
- Register as a merchant at https://my.mca.sh/ssp/merchant/
MapiClient is the main class and can be found in mapi_client. It’s constructor takes 4 required arguments:
- mcash_merchant: Your merchant id, received while registering.
- mcash_user: Your merchant user, added in the SSP.
- base_url: The base url to use. For production this is http://api.mca.sh/. The URL’s to use for testing can be found at http://dev.mca.sh/.
- auth: The authentication method to use. Accepts one of the classes defined in auth. See the ‘Auth’ section for more information.
After being instantiated with these arguments, the client is ready to use. All functionality is provided as member methods of the MapiClient class.
The merchant API supports 3 authentication levels:
- Open (no authentication)
These are represented in the merchant API client as classes in the auth file. When passed as an argument to the MapiClient during instantiation, authentication will be automatically applied to every request.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size mcash-mapi-client-0.1.3.tar.gz (12.0 kB)||File type Source||Python version None||Upload date||Hashes View|