npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

proxypay-api

v1.0.0

Published

An API wrapper for ProxyPay written in Nodejs

Readme

ProxyPay API Wrapper

An API wrapper for ProxyPay written in Nodejs. ProxyPay is a service that allow payments in ATM by generating custom references used by small, medium and big companies in Angola 🇦🇴.

For more information about ProxyPay visit their beautiful site: https://proxypay.co.ao.

OBS: Existe uma versão da documentação em Português 🇦🇴.

Usage

1 - Install it

sudo npm install proxypay-api --save

2 - Import and configure it

const ProxyPay = require("proxypay-api");

var P = new ProxyPay({
	apikey: "your_api_key_provided_by_proxypay"
});

Methods

Generate(data)

It Generate a new reference. This method has one parameter, data, is an object. Example:

var data = {
	reference: {
		amount: "5000.00",
		expiry_date: "2017-01-01",
		custom_fields: {
			invoice: "2017/002",
			name: "Firmino Changani",
			email: "[email protected]",
			cellphone: "915044355"
		}
	}
}

// Call the method with and object as a parameter
P.GenerateReference(data)
.then(
	(success)=>{
		console.log(success);
	},
	(error)=>{
		console.log(error);
	}
);

Read more about generating references.

GetAllReferences(options)

This method return all references generated in your account. Has one parameter which is an optional object with theses properties:

| Property | Default | Description | |----------|---------|---------------------------------------------------------------------------------------------------------------------------------------------------------------| | limit | 100 | Max. number of references to return. | | offset | 0 | Skip offset records. Usefull for pagination. | | status | - | Filter parameter. If set to either active, deleted, expired or paidwill return only references with that status value. | | q | - | Filter parameter. will return any reference for which the value of the q parameter matches the beginning of the reference number or any of the custom_fields. |

Example:


P.GetAllReferences()
.then(
	(success)=>{
		console.log(success);
	},
	(error)=>{
		console.log(error);
	}
);

Read more about: get all references.

GetOneReference(id)

This method return on reference specified by its id. Has one parameter which is the id. Example:

P.GetOneReference("reference_id")
.then(
	(success)=>{
		console.log(success);
	},
	(error)=>{
		console.log(error);
	}
);

Read more about: get one reference.

GetPayments(options)

This method fetch all Payment events that have not been acknowledged. Has one parameter which is an optional object with theses properties:

| Property | Default | Description | |----------|---------|------------------------------------------------------------------------| | n | 100 | Max. number of payment events to return. This must be between 1 and100 | | offset | 0 | Skip offset records. Usefull for pagination. |

Example:

P.GetPayments()
.then(
	function(success){
		console.log(success);
	},
	function(err){
		console.log(err);
	}
);

Read more about: fetch all payments.

AcknowledgePayments(paymentid)

This method acknowledges that a specific payment has been processed. Has one parameter which is the paymentid that can be a string for a single payment or an array for multiple payments.

P.AcknowledgePayments(["449500352608"])
.then(
	function(success){
		console.log(success);
	},
	function(err){
		console.log(err);
	}
);

Read more about: Acknowledge a single Payment or multiple Payments.

License

This project is under MIT license. Read more about that here

Copyright 2017 - Firmino Changani