{"id":20426969,"url":"https://github.com/alexnguetcha/intouch-nodejs","last_synced_at":"2025-07-03T03:05:01.143Z","repository":{"id":146265274,"uuid":"617411405","full_name":"AlexNguetcha/intouch-nodejs","owner":"AlexNguetcha","description":"This is a TypeScript library for the Intouch API. It provides an easy-to-use interface for integrating with the Intouch API in your NodeJs projects.","archived":false,"fork":false,"pushed_at":"2023-03-28T16:22:31.000Z","size":314,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-09T17:18:39.064Z","etag":null,"topics":["gutouch","intouch","mobilemoney","nodejs","payment-integration"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AlexNguetcha.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-22T10:39:42.000Z","updated_at":"2023-03-24T19:12:30.000Z","dependencies_parsed_at":"2023-07-06T14:01:01.394Z","dependency_job_id":null,"html_url":"https://github.com/AlexNguetcha/intouch-nodejs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AlexNguetcha/intouch-nodejs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexNguetcha%2Fintouch-nodejs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexNguetcha%2Fintouch-nodejs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexNguetcha%2Fintouch-nodejs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexNguetcha%2Fintouch-nodejs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlexNguetcha","download_url":"https://codeload.github.com/AlexNguetcha/intouch-nodejs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexNguetcha%2Fintouch-nodejs/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263250594,"owners_count":23437288,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gutouch","intouch","mobilemoney","nodejs","payment-integration"],"created_at":"2024-11-15T07:18:18.902Z","updated_at":"2025-07-03T03:05:01.124Z","avatar_url":"https://github.com/AlexNguetcha.png","language":"TypeScript","readme":"# Intouch NodeJs API Wrapper\n\nThis is a TypeScript library for the Intouch API. It provides an easy-to-use interface for integrating with the Intouch API in your NodeJs projects.\n\n\n## Intallation\n\nTo use this library, you will need to install the `intouch-api-wrapper` package from NPM.\n\n```bash\nnpm i intouch-api-wrapper\n```\n\n# Usage\n\nTo use this library, first import it and create an instance with your Intouch credentials:\n\n```js\nrequire('dotenv').config()\nconst intouch = require('intouch-api-wrapper')\n\nconst intouchPayment = intouch.Intouch.credentials({\n    username: process.env.DIGEST_AUTH_USE\n    password: process.env.DIGEST_AUTH_PASSWORD ?? '',\n    loginAgent: process.env.LOGIN_AGENT ?? '',\n    passwordAgent: process.env.PASSWORD_AGENT ?? '',\n    intouchId: process.env.INTOUCH_ID ?? '',\n})\n\n```\n\n## Checking your balance\n\n```js\nconst balance = await intouchPayment\n  .operator(Intouch.SUPPORTED_OPERATORS[0])\n  .partnerId(process.env.PARTNER_ID ?? '')\n  .getBalance();\n\n// retrieve balance amount\n\nbalance.then((res)=\u003e{\n    console.log(res.amount)\n    // Response\n    // {\n    // \"status\": null,\n    // \"amount\": 988750,\n    // \"errorCode\": \"200\",\n    // \"errorMessage\": \"SUCCESSFUL\"\n    // }\n}).catch((err)=\u003e{\n    // Something went wrong !\n    console.log(err)\n})\n\n\n\n```\n\n## Make merchant payment \n\n```js\nconst additionnalInfos = {\n    recipientEmail: \"johndoe@gmail.com\",\n    recipientFirstName: \"John\",\n    recipientLastName: \"Doe\",\n}\n\nconst merchantPayment = await intouchPayment.callback(\"https://app.test\")\n  .partnerId(\"YOUR_PARTNER_ID\")\n  .operator('ORANGE')\n  .phone('695xxxx0x')\n  .amount(500)\n  .makeMerchantPayment(additionnalInfos);\n  .then(res =\u003e res.json())\n  .then(res =\u003e console.log(res))\n  .catch(err =\u003e console.log(err))\n\n// Response\n// {\n//    \"idFromClient\": \"1679582194250\",\n//    \"idFromGU\": \"1679582196117\",\n//    \"amount\": 1575.0,\n//    \"fees\": 3.75,\n//    \"serviceCode\": \"CM_PAIEMENTMARCHAND_OM_TP\",\n//    \"recipientNumber\": \"695xxxx0x\",\n//    \"dateTime\": 1679582196117,\n//    \"status\": \"INITIATED\",\n//    \"numTransaction\": \"MP230323.1536.Bxxxxx\",\n//    \"payment_url\": null,\n//    \"codeMarchand\": null,\n//    \"qrCode\": null,\n//    \"validity\": null,\n//    \"deepLink\": null\n// }\n\n```\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexnguetcha%2Fintouch-nodejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexnguetcha%2Fintouch-nodejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexnguetcha%2Fintouch-nodejs/lists"}