ES5 and ES6 compatible javascript SDK with types to interact with Qorcommerce Payment Gateway
https://qorlabs.github.io/js-sdk/index.html
https://docs.qorcommerce.io
https://www.npmjs.com/package/qor-direct-sdk
https://unpkg.com/qor-direct-sdk@latest/dist/index.umd.js
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))
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))