Skip to content

Tolfix/cpg-npm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Central Payment Gateway npm

⭐ | cpg-npm

cpg-npm is being used to intereact with CPG-API.

📝| Examples

Caching Configs

import CPG from "cpg-npm";

// Set config, then you are ready to use cpg
CPG.config.set({
    admin: {
        password: "password for admin on cpg",
        username: "username for admin on cpg"
    },
    cpg: {
        // host for cpg, example: cpg.example.com
        host: "localhost:8080",
        // http or https
        protocol: "http"
    },
    // If you want to use rest api, set this to true
    isUsingRest: true,
    // If you want to use graphql instead, set to true
    isUsingGraphql: false,
    // Rest api version, default is v2
    rest: {
        version: "v2"
    },
});

📢 | Contribute

Want to contribute? Great! You can contribute by forking this repository, then make changes and make a PR!

Or simple ask on our discord server.

🔮 | Discord

Discord

⚙ | Tolfix

Tolfix is a company focusing about IT, Development and Networking, we drive to help others with their problems when it comes to IT and love contributing to others. Want to find more information about us you can visit us at https://tolfix.com/.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published