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

satispay-javascript-plugin

v1.0.1

Published

A Javascript plugin to generate a dynamic payment request to Satispay service

Readme

Satispay-Javascript-Plugin

A Javascript plugin to generate a dynamic payment request to Satispay service


Satispay is a new payment system that allows you to pay stores or friends from your smartphone.

Satispay allows you to perform microtransmissions completely free of charge (under € 10 Euros).

The service allows you to add a WebButton, so you can manage the payment from your application or website but the WebButton is not dynamic so you can generate this one only refreshing your webpage and only clicking on the default Satispay Button.

This plugin allows you to generate and open a dynamic window to get the payment from your users (and you can manage this with your classic events!)

In Desktop view:

alt text

In Mobile view:

alt text

Compatibility

The plugin is compatible with the majority of Web browsers and with Cordova / Phonegap applications

Libraries

The plugin use the original Satispay library to generate a WebButton

Install

Using NPM:

npm install satispay-javascript-plugin --save

OR Download and import the library with SCRIPT tag:

<script src="/path_to_your_assets/satispay.js"></script>

or minified version:

<script src="/path_to_your_assets/satispay.min.js"></script>

How to use

Before you can use the plugin, you need to initialize a Satispay object

var satispay = new Satispay(options);

Where the options are:

{
    key : <String> Your merchant key,
    webhook: <String> Your server URL hook,
    sandbox: <Bool> Define if you are in Sandbox mode,
    [key_sandbox: <String> Your sandbox merchant key]
}

After initialization of the object you can call the main method to launch the payment window:

satispay.newPayment(amount:<Int>,description:<String>,nameOfCallBackFunction:<String>);
  • amount : The amount of your payment (e.g. use 200 for 2.00 €/$)
  • description : The description for this payment, it will show into the window under the logo
  • nameOfCallBackFunction : The name of your callback function, this will be called after the payment verification

Complete Example

//Define the options
var options = {
    key : "YOUR_KEY",
    webhook: "http://yourserver.yourdomain/webhook",
    sandbox: false
}

//Initialize the Satispay object
var satispay = new Satispay(options);

//define a callback function
var cb = function(){
    console.log("The coffee has been Paid!");
}

//Pay one coffee
satispay.newPayment(100,"Coffee Test","cb");

//OR with a click event (e.g. Jquery):

$("yourbutton_selector").on("click",function(){
    satispay.newPayment(100,"Coffee Test","cb");
});

Preview

In Desktop view:

alt text

In Mobile view:

alt text

Be aware of Sandbox mode

If you want to test the sandbox you will need to accept the self-signed certificate of Satispay staging server, to do this click on this link and accept the certificate: https://staging.online.satispay.com/

Any problems or bugs?

Contact me at [email protected] ;)