0.0.2 • Published 4 years ago

kount-vip-sdk v0.0.2

Weekly downloads
1
License
ISC
Repository
github
Last release
4 years ago

Description

SDK used to interact with Kount's VIP API

Installation

npm install --save kount-vip-sdk

Usage

SDK require an API key which can be found in your Kount Dashboard

const KountSdk = require('kount-vip-sdk');
const apiKey = 'XXX.YYY.ZZZ';
const kount = new KountSdk(apiKey);

kount.addEmail('test@email.com', 'action');
kount.sendEmail();

API

All actions are done in bulk. You must first add the action then send the action

Address

addAddress(address, type, action);
  • address - (object) Address object, must be of format:
{
  line1,
  line2,
  city,
  state,
  zipCode,
  country //w ill default to 'US' if count is blank
}
  • type - (string) Address type: billing or shipping
  • action - (string) Action to take: decline, delete or review

To submit addresses, run:

sendAddresses();

Device

addDevice(id, action);
  • id - (string) Device ID
  • action - (string) Action to approve, review, decline, or delete.

To submit devices, run:

sendDevices();

Email

addEmail(address, action);
  • email - (string) Email address to execute against
  • action - (string) Action to approve, review, decline, or delete.

To submit emails, run:

sendEmails();

Payment

addPayment(token, type, action);
  • token - (string) Payment token to execute against
  • type - (string) slugified payment type
    • Apple Pay = apple_pay
    • BPAY = bpay
    • Carte Bleue = carte_bleue
    • Check = check
    • ELV = elv
    • GiroPay = giropay
    • Interac = interac
    • Mercado Pago = mercado_pago
    • Neteller = neteller
    • POLi = poli
    • Paypal = paypal
    • Single Euro Payments Area = single_euro_payments_area
    • Skrill/Moneybookers = skrill_moneybookers
    • Sofort = sofort
    • Token = token
  • action - (string) Action to approve, review, decline, or delete.

To submit payments, run:

sendPayments();
0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago