Giter Site home page Giter Site logo

chargily / chargily-epay-js Goto Github PK

View Code? Open in Web Editor NEW
27.0 3.0 9.0 60 KB

JavaScript Library for Chargily ePay Gateway

Home Page: https://dev.chargily.com/docs/#/epay-js

TypeScript 100.00%
api epay payment edahabia cib js javascript package library satim

chargily-epay-js's Issues

addon for angular

I suggest you add an angular implementation, it has a large community using it, and one of angular use cases, is that it's recommended for large projects, and a big part of the market uses angular, and those one need a payment method.

thanks

Cleanup and write tests

Hello,

I did a quick walkthrough in this repository and it seems like it's a PoC as there's a lot of dead code, and quick hacks. The repository also is missing unit tests which we'd expect from a library that will be an interface for a payment backend.

There are also some pieces that may cause bugs, for example:

  • This one, dotenv.config is async and may load env variables anytime, which means that we might not be available when consumed

dotenv.config()

Also, I'm having a hard time understanding the logic, there're some references to axios which means that at some point we'll be calling a backend service, but how and where?

GET https://registry.npmjs.org/chargily-epay-js - Not found

error while preforming :
npm i chargily-epay-js
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/chargily-epay-js - Not found
npm ERR! 404
npm ERR! 404 'chargily-epay-js@*' is not in this registry.
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

A complete log of this run

0 verbose cli C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js
1 info using [email protected]
2 info using [email protected]
3 timing npm:load:whichnode Completed in 1ms
4 timing config:load:defaults Completed in 1ms
5 timing config:load:file:C:\Program Files\nodejs\node_modules\npm\npmrc Completed in 1ms
6 timing config:load:builtin Completed in 2ms
7 timing config:load:cli Completed in 1ms
8 timing config:load:env Completed in 1ms
9 timing config:load:file:D:\Projects\Personal\Invoicing\MAIN_PROJECT\server\.npmrc Completed in 0ms
10 timing config:load:project Completed in 1ms
11 timing config:load:file:C:\Users\usename\.npmrc Completed in 0ms
12 timing config:load:user Completed in 0ms
13 timing config:load:file:C:\Users\usename\AppData\Roaming\npm\etc\npmrc Completed in 0ms
14 timing config:load:global Completed in 0ms
15 timing config:load:setEnvs Completed in 1ms
16 timing config:load Completed in 9ms
17 timing npm:load:configload Completed in 9ms
18 timing npm:load:mkdirpcache Completed in 0ms
19 timing npm:load:mkdirplogs Completed in 0ms
20 verbose title npm i chargily-epay-js
21 verbose argv "i" "chargily-epay-js"
22 timing npm:load:setTitle Completed in 2ms
23 timing config:load:flatten Completed in 3ms
24 timing npm:load:display Completed in 4ms
25 verbose logfile logs-max:10 dir:C:\Users\usename\AppData\Local\npm-cache\_logs\2023-09-04T18_22_01_621Z-
26 verbose logfile C:\Users\usename\AppData\Local\npm-cache\_logs\2023-09-04T18_22_01_621Z-debug-0.log
27 timing npm:load:logFile Completed in 6ms
28 timing npm:load:timers Completed in 0ms
29 timing npm:load:configScope Completed in 0ms
30 timing npm:load Completed in 23ms
31 timing arborist:ctor Completed in 0ms
32 silly logfile start cleaning logs, removing 3 files
33 silly logfile error removing log file C:/Users/usename/AppData/Local/npm-cache/_logs/2023-09-04T17_46_25_387Z-debug-0.log [Error: EPERM: operation not permitted, lstat 'C:\Users\usename\AppData\Local\npm-cache\_logs\2023-09-04T17_46_25_387Z-debug-0.log'] {
33 silly logfile   errno: -4048,
33 silly logfile   code: 'EPERM',
33 silly logfile   syscall: 'lstat',
33 silly logfile   path: 'C:\\Users\\usename\\AppData\\Local\\npm-cache\\_logs\\2023-09-04T17_46_25_387Z-debug-0.log'
33 silly logfile }
34 silly logfile done cleaning log files
35 timing idealTree:init Completed in 105ms
36 timing idealTree:userRequests Completed in 2ms
37 silly idealTree buildDeps
38 silly fetch manifest chargily-epay-js@*
39 timing arborist:ctor Completed in 1ms
40 http fetch GET 404 https://registry.npmjs.org/chargily-epay-js 1120ms (cache skip)
41 http fetch GET 404 https://registry.npmjs.org/chargily-epay-js 868ms (cache skip)
42 silly placeDep ROOT chargily-epay-js@ OK for: [email protected] want: *
43 timing idealTree:#root Completed in 1995ms
44 timing idealTree:node_modules/chargily-epay-js Completed in 0ms
45 timing idealTree:buildDeps Completed in 1997ms
46 timing idealTree:fixDepFlags Completed in 1ms
47 timing idealTree Completed in 2106ms
48 timing command:i Completed in 2115ms
49 verbose stack HttpErrorGeneral: 404 Not Found - GET https://registry.npmjs.org/chargily-epay-js - Not found
49 verbose stack     at C:\Program Files\nodejs\node_modules\npm\node_modules\npm-registry-fetch\lib\check-response.js:95:15
49 verbose stack     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
49 verbose stack     at async RegistryFetcher.packument (C:\Program Files\nodejs\node_modules\npm\node_modules\pacote\lib\registry.js:87:19)
49 verbose stack     at async RegistryFetcher.manifest (C:\Program Files\nodejs\node_modules\npm\node_modules\pacote\lib\registry.js:118:23)
49 verbose stack     at async [nodeFromEdge] (C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\build-ideal-tree.js:1059:19)
49 verbose stack     at async [buildDepStep] (C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\build-ideal-tree.js:929:11)
49 verbose stack     at async Arborist.buildIdealTree (C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\build-ideal-tree.js:207:7)
49 verbose stack     at async Promise.all (index 1)
49 verbose stack     at async Arborist.reify (C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\reify.js:159:5)
49 verbose stack     at async Install.exec (C:\Program Files\nodejs\node_modules\npm\lib\commands\install.js:146:5)
50 verbose statusCode 404
51 verbose pkgid chargily-epay-js@*
52 verbose cwd D:\Projects\Personal\Invoicing\MAIN_PROJECT\server
53 verbose Windows_NT 10.0.19045
54 verbose node v18.15.0
55 verbose npm  v9.5.0
56 error code E404
57 error 404 Not Found - GET https://registry.npmjs.org/chargily-epay-js - Not found
58 error 404
59 error 404  'chargily-epay-js@*' is not in this registry.
60 error 404
60 error 404 Note that you can also install from a
61 error 404 tarball, folder, http url, or git url.
62 verbose exit 1
63 timing npm Completed in 2164ms
64 verbose unfinished npm timer reify 1693851721666
65 verbose unfinished npm timer reify:loadTrees 1693851721671
66 verbose code 1
67 error A complete log of this run can be found in:
67 error     C:\Users\usename\AppData\Local\npm-cache\_logs\2023-09-04T18_22_01_621Z-debug-0.log

webhook url

Hi, I get an error when i assign the localhost url to the invoice webhook.

how can i fix that.

Error: error message: Request failed with status code 422
at E:\epay_2\node_modules\chargily-epay-gateway\lib\index.js:115:27
at step (E:\epay_2\node_modules\chargily-epay-gateway\lib\index.js:56:23)
at Object.throw (E:\epay_2\node_modules\chargily-epay-gateway\lib\index.js:37:53)
at rejected (E:\epay_2\node_modules\chargily-epay-gateway\lib\index.js:29:65)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
[nodemon] app crashed - waiting for file changes before starting...

npm install chargily-epay-js doesn't work

when I type the command to install the package , it acts like it doesn't exist . I'm trying to install it manually and I didn't find out how yet , hope the probleme will be solved soon.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.