paypro-client
v1.0.8
Published
PayPro Client
Downloads
30
Readme
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: '[email protected]',
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);
});