0.1.0 • Published 1 year ago

kesspay v0.1.0

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

Kess payment

This documentation aims to provide all the information you need to work with Kess library.

Installation

  npm install kesspay

Usage

  const Kess = require('kesspay')

Create new instance of Kess

  const kess = new Kess({
        API_URL: {YOUR_API_URL},
        USERNAME: {YOUR_USERNAME},
        PASSWORD: {YOUR_PASSWORD},
        CLIENT_ID: {YOUR_CLIENT_ID},
        CLIENT_SECRET: {YOUR_CLIENT_SECRET},
        SELLER_CODE: {YOUE_SELLER_CODE},
        API_SECRET_KEY: {YOUR_API_SECRET_KEY}
  })

Usage/Examples

Generate payment link

const link = await kess.generatePaymentLink({
        body: "Delishop",
        currency: "USD",
        out_trade_no: "TR-20230310104700",
        total_amount: 10,
        invoke_reuse: 1
    })
console.log(link)

List all payment method

const allPaymentMethod = await kess.listAllPaymentMethod()
console.log(allPaymentMethod)

Kess Documentation

Documentation

0.1.0

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago