KAYBIC AFRICA Payment SDK
NodeJS
⌘I
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
npm i @easytransfert/sdk-api-marchand-nodejs
const Kaybic = require("kaybic-payments-sdk");
const client = new Kaybic({
apiKey: "VOTRE_CLE_API",
ipn_url: "https://votre-domaine.com/webhook/ipn"
});
const response = await sdk.cashout.cashout({
amount: 500,
destination: "0700000000",
ipn_url: "https://votre-domaine.com/webhook/ipn",
api_key: "votre-api-key",
service_id: 17,
custom_data: "commande-12345",
});
console.log(response);
const response = await sdk.cashin.cashin({
amount: 1000,
destination: "0700000000",
ipn_url: "https://votre-domaine.com/webhook/ipn",
api_key: "votre-api-key",
service_id: 17,
});
console.log(response);
const balance = await sdk.balance.getBalance({
api_key: "votre-api-key",
});
console.log(balance);
const status = await sdk.transactionStatus.checkStatus({
transaction_ids: "txn_abc123",
api_key: "votre-api-key",
});
console.log(status);
