{"repo":"craftgate/craftgate-node-client","free":true,"listed":false,"github":"https://github.com/craftgate/craftgate-node-client","clone":"git clone https://github.com/craftgate/craftgate-node-client.git","description":"Node.js client for Craftgate API","language":"TypeScript","stars":37,"topics":["nodejs","client-library","nodejs-client","craftgate-api","craftgate","typescript","javascript","payment-gateway","payment","payment-orchestration"],"license":"Apache-2.0","category":"auth-billing-email","readme_excerpt":"Craftgate Node.js Client This repo contains the Node.js client for Craftgate API. Requirements - Node.js v4.x+ - If you plan on using this library with older versions of Node (e.g. v0.10.x), you'll only need to include a Promise polyfill such as bluebird Installation Usage To access the Craftgate API you'll first need to obtain API credentials (e.g. an API key and a secret key). If you don't already have a Craftgate account, you can signup at https://craftgate.io Once you've obtained your API credentials, you can start using Craftgate by instantiating a CraftgateClient with your credentials. By default the Craftgate client connects to the production API servers at https://api.craftgate.io . For testing purposes, please use the sandbox URL https://sandbox-api.craftgate.io using the . Bulk Import vs. Individual Imports The root export of the project (e.g. @craftgate/craftgate ) is designed primarily for CommonJS-style bulk imports, but the project also exports its modules individually, so you can also import them directly in ES6 fashion. On development environments where a transpiler such as Babel or TypeScript exists, we recommend using this approach. Keep in mind that when using direct imports, you'll have to import necessary modules individually. So this code: becomes like this: Also, since we make use of default exports, if you wish to import these modules directly in CommonJS fashion (e.g. require() ), then make sure you're accessing the default keyword of the module. Exam","default_branch":null,"files":null,"tree":[],"storefront":"/r/craftgate","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/craftgate/craftgate-node-client/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}