0.3.3 • Published 2 years ago

@mia-burton/scalapay-js v0.3.3

Weekly downloads
2
License
MIT
Repository
github
Last release
2 years ago

scalapay-js

A Node.js module for scalapay api

Installation

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

Usage

Javascript

var scalaClient = require('@mia-burton/scalapay-js')
var client = new scalaClient(API_KEY)

//Create order
client.createOrder(orderDetail, 'your-confirmation-url', 'your-cancel-url')

//Capture payment
client.capture(token)

//Refund
client.refund(token ,refund)

TypeScript

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

const client = new ScalaClient(API_KEY)

//Create order
client.createOrder(orderDetail, 'your-confirmation-url', 'your-cancel-url')

//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.3.3

2 years ago

0.3.2

3 years ago

0.3.0

4 years ago

0.3.1

4 years ago

0.2.3

4 years ago

0.2.2

4 years ago

0.2.1

4 years ago