tigopesa python package by - Kalebu Jordan
Getting started
To get started with Tigopesa, you firstly need to install it as show below;
1 |
|
Authorization and Configuration
Before you begin making transaction with tigopesa module, you firstly need to initialize your tigopesa api credentials client_id and client_secret you were given.
Whether are sandbox keys or production keys, all of them are in great use with the tigopesa package
Here how to initialize;
1 2 3 4 5 6 |
|
OR
You can do this;
1 2 3 4 |
|
Once you initialize your module, you might need still need to configure your module with couple of more information ready to begin making transactions, there are required parameters and optional parameters while configuring as shown below;
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
|
As you can see there about 3 required parameters while the rest being optional parameters, so in our example we are going to configure using only 3 required parameters and the rest will just take the default values;
1 2 3 4 5 6 7 |
|
Authorizing Payments
Now once we are done with the authentication and the authorization part, we can start making authorizing tigopesa payment, Here an example you would authorize a secure tigopesa payment with tigopesa library;
1 2 3 4 5 6 7 8 9 |
|
1 2 3 |
|
Issues
If you're facing issue with the use of the package, raise an issue and I will be working to fixing it as soon as I can;
Contributing
Tigopesa has a lot of modules to integrate, it can be overwhelming doing all of them by myself together with other responsibilities so I warmly welcome contributors (code + documentation) to contribute to this package.