Logo Lanfrica

Chargily/chargily-pay-javascript

Domain:

digital infrastructure

Record type:

software
Creator:
Cha
Host:
JS Package of Chargily Pay™, the easiest and free way to integrate e-payment API through widespread payment methods in Algeria such as EDAHABIA (Algerie Post) and CIB (SATIM) into your JavaScript/Node.js server-side projects. # Welcome to JavaScript Package Repository # for Chargily Pay™ Gateway - V2. Thank you for your interest in JS Package of Chargily Pay™, an open source project by Chargily, a leading fintech company in Algeria specializing in payment solutions and e-commerce facilitating, this Package is providing the easiest and free way to integrate e-payment API through widespread payment methods in Algeria such as EDAHABIA (Algerie Post) and CIB (SATIM) into your JavaScript/Node.js back-end projects. **IMPORTANT: This package is meant to be ONLY used in the server-side** This package is developed by **Rauf (ruzolut)** and is open to contributions from developers like you. ## Key Features - Easy integration with Chargily Pay e-payment gateway - Support for both EDAHABIA of Algerie Poste and CIB of SATIM - Comprehensive management of customers, products, and prices - Efficient handling of checkouts and payment links - Compatible with Node.js and browser environments - Support for webhooks. ## Installation To include this library in your project, you can use npm or yarn: ```shell npm install @chargily/chargily-pay ``` or ```shell yarn add @chargily/chargily-pay ``` ## Getting Started Before utilizing the library, you must configure it with your Chargily API key and specify the mode (test or live). Here's an example to get started: ```ts import { ChargilyClient } from '@chargily/chargily-pay'; const client = new ChargilyClient({ api_key: 'YOUR_API_SECRET_KEY_HERE', mode: 'test', // Change to 'live' when deploying your application }); ``` This initializes the Chargily client, ready for communication with the Chargily Pay API. ## Webhooks Notice **Important Notice:** Using webhooks is only suitable for back-end environments. Webhooks allow your application to react to events from Chargily Pay by receiving HTTP requests with JSON payloads. To set up and handle webhooks securely, you must implement them on a server-side environment. This ensures the proper verificat …