New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

paypro-client

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

paypro-client

PayPro Client

latest
Source
npmnpm
Version
1.0.8
Version published
Maintainers
1
Created
Source

PayPro Client

This module provides an easy to use interface for PayPro.

Environment:

PAYPRO_KEY = Your API key

Usage

const Client = require('../lib/client');
const client = new Client();

or

const Client = require('../lib/client');
const client = new Client({
  apiKey: '***Your API key***',
});

CreatePayment

Creates a payment intended for a consumer

Example

const Client = require('../lib/client');

const client = new Client();
const payment = {
  productId: '12345',
  consumerIban: 'NL65INGB0000000000',
  consumerEmail: 'bogusemail@gmail.com',
  payMethod: 'ideal',
  bicCode: 'INGBNL2A',
  testMode: true,
  description: 'Voorbeeld Betaling',
  amount: 1.50,
};

client.createPayment(payment, (err, result) => {
  if (err) {
    console.error(err);
    return;
  }
  console.log(result);
});

Keywords

paypro

FAQs

Package last updated on 01 Jul 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts