Skip to content

Qorcommerce.io payment gateway javascript SDK (ES6 and ES6)

Notifications You must be signed in to change notification settings

QorLabs/qor-direct-js-sdk

Repository files navigation

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

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))

About

Qorcommerce.io payment gateway javascript SDK (ES6 and ES6)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published