node-cinetpay v1.0.6
Unofficial node module including the cinetpay api functions
So the idea came to me when I was trying to use the cinetpay api in a vuejs application, I was not able to do so because Vuejs does not render templates with the "script" tag, neither does React with it's components but the only way of accessing the api was by importing the sdk. I could have done it by many other ways, but I decided instead to create a node module based on the javascript sdk.
DISCLAIMER
This package is unofficial and is not supported by CinetPay. I am not affiliated with CinetPay. However, I can guarantee that this package is safe and will not cause any harm to your application or your customers.
INSTALLATION
Install the package with npm:
npm install node-cinetpay
USAGE
Once installed, you can use the package like this:
import { Cinetpay } from 'node-cinetpay';
const cinetpay = new Cinetpay.setConfig({
apiKey: 'your_api_key',
site_id: your_site_id,
mode: 'SANDBOX',
notify_url: 'http://your_domain.com/notify',
});
And that's it! Everything else you might need is already implemented in the package and you can refer to the official documentation for more information.
In the future, I will try to add more features to this package, so stay tuned!