1.0.8 • Published 1 year ago

cloudipsp-node-js-sdk v1.0.8

Weekly downloads
260
License
GPL-3.0
Repository
github
Last release
1 year ago

IPSP NODEJS-SDK (beta)

Payment service provider

A payment service provider (PSP) offers shops online services for accepting electronic payments by a variety of payment methods including credit card, bank-based payments such as direct debit, bank transfer, and real-time bank transfer based on online banking. Typically, they use a software as a service model and form a single payment gateway for their clients (merchants) to multiple payment methods. read more

Installation

npm install cloudipsp-node-js-sdk

Manual installation

git clone -b master https://github.com/cloudipsp/node-js-sdk.git

Required

node >= 7

Simple Start

const CloudIpsp = require('cloudipsp-node-js-sdk')

const fondy = new CloudIpsp(
  {
    merchantId: 1396424,
    secretKey: 'test'
  }
)
const requestData = {
  order_id: 'Your Order Id',
  order_desc: 'test order',
  currency: 'USD',
  amount: '1000'
}
fondy.Checkout(requestData).then(data => {
  console.log(data)
}).catch((error) => {
  console.log(error)
})

Notice

merchant_data must be string.

Example:

 const merchant_data = JSON.stringify([{
    email: 'test@fondy.eu',
    comment: 'Some comment'
 }])

Api

See docs

Examples

Checkout examples

1.0.8

1 year ago

1.0.7

1 year ago

1.0.5

4 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago