Skip to content

sixpaq/paypro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

PayPro Api Client Module

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published