0.2.1 • Published 5 years ago

@mia-burton/scalapay-node v0.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

scalapay-node

A Node.js module for scalapay api

Installation

npm install @mia-burton/scalapay-node --save
yarn add @mia-burton/scalapay-node

Usage

Javascript

var scalaClient = require('@mia-burton/scalapay-node')
var client = new scalaClient(API_KEY, CONFIRM_URL, FAILURE_URL)

//Create order
client.createOrder(orderDetail)

//Capture payment
client.capture(token)

//Refund
client.refund(token ,refund)

TypeScript

import { ScalaClient } from '@mia-burton/scalapay-node'

const client = new ScalaClient(API_KEY, CONFIRM_URL, FAILURE_URL)

//Create order
client.createOrder(orderDetail)

//Capture payment
client.capture(token)

//Refund
client.refund(token ,refund)

Enable sandbox env

On inizialization set sandbox parameter to true

Test

npm run test
0.2.1

5 years ago

0.2.0

5 years ago

0.1.2

5 years ago