qor-direct-sdk
v3.0.5
Published
Javascript SDK for Qorcommerce.io payment gateway. See https://docs.qorcommerce.io/ for more information.
Downloads
19
Maintainers
Readme
QorCommerce Direct Javascript SDK
ES5 and ES6 compatible javascript SDK with types to interact with Qorcommerce Payment Gateway
SDK API Documentation
https://qorlabs.github.io/js-sdk/index.html
QorCommerce Developer Documentation
https://docs.qorcommerce.io
NPM Registry
https://www.npmjs.com/package/qor-direct-sdk
UMD
https://unpkg.com/qor-direct-sdk@latest/dist/index.umd.js
ES6 Example:
import { QorDirectSDK } from "qor-direct-sdk"
const client = new QorDirectSDK({
apiKey: 'YOUR_API_KEY',
clientKey: 'YOUR_CLIENT_KEY',
requestId: null, // <- optional. unique identifier to track transaction. Defaults to random generated string value
baseUrl: 'https://api.qorcommerce.io/v3' // <- use when ready for production. defaults to sandbox api
});
client.transactions.listTransactions({
card_type: "visa"
}).then((a) => console.log(a))
CommonJS Example:
const { QorDirectSDK } require('qor-direct-sdk')
const client = new QorDirectSDK({
apiKey: 'YOUR_API_KEY',
clientKey: 'YOUR_CLIENT_KEY',
requestId: null, // <- optional. unique identifier to track transaction. Defaults to random generated string value
baseUrl: 'https://api.qorcommerce.io/v3' // <- use when ready for production. defaults to sandbox api
});
client.transactions.listTransactions({
card_type: "visa"
}).then((a) => console.log(a))