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

react-nummus-pay

v1.0.2

Published

ReactJS library for implementing Nummuspay.CreateToken()

Readme

React PayNummus Token Component

Nummuspay is a Payment Service Provider https://nummuspay.com/ and the reason you should deploy them as a PSP is quite simply because they are a very good ALT to Stripe and friendly.

Henry Davison - Lead DEV @vshop.vadoo.co.uk


react-nummus-pay is at https://bitbucket.org/houseofdavison/react-nummus-pay

An example of integration can be seen at vShop or see this in ReactJS


Status

Version 1.0.1 Pre Production ** Please note that this is a low-level sub-component of react-nummus-checkout

Installation

Get started by installing with npm

npm install react-nummus-pay

Code

import React from 'react'    
import PayNummus from 'react-nummus-pay';

// Fixed format strict USAGE:

<PayNummus
	publicKey=""
	email=""
	amount=""
	currency=""
	name=""
	address=""
	zip=""
	cardNumber=""
	cvc=""
	expiry="mm/yy"
	onSuccess={...OnToken handler}
	onFail={...OnDecline handler}
/>

Parameters

| publicKey | your Client Public KEY |

| email | your client's email address, e.g. [email protected] |

| amount | to pay as an integer or decimal, e.g. '123.99' |

| currency | Code e.g. GBP, USD |

| name | first-last e.g. 'John Doe' |

| address | Billing Address, e.g. '1 London Lane' |

| zip | e.g. 'N1 5AB' in London |

| cardNumber | full 16-digit number, no spaces |

| cvc | CVC or CVV number normally 3-digits |

| expiry | format MM/YY as a string, eg. '05/25' |

Callbacks

Within your React Component - where you invoke PayNummus - you will have two Callback functions e.g.

paymentReceived (token) {
	...
}

paymentDeclined (reason) {
	...
}

So in your <PayNummus .../> you would have:

<PayNummus
	...
	onSuccess={this.paymentReceived}
	onFail={this.paymentDeclined}
/>

If these callbacks require prop or state variables you will probably want to say:

this.paymentReceived = this.paymentReceived.bind(this);
this.paymentDeclined = this.paymentDeclined.bind(this);

in your Constructor, e.g.

class NummusCheckout extends React.Component {

constructor(props, defaultProps) {
	super(props, defaultProps);

			this.paymentReceived = this.paymentReceived.bind(this);
			this.paymentDeclined = this.paymentDeclined.bind(this);
...

Chances are that you will NOT require this low-level component when you can use its big sister see

react-nummus-checkout

This is also on NPM as

npm install react-nummus-checkout