1.0.8 • Published 6 years ago

paypro-client v1.0.8

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

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);
});
1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago