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

@acountpay/pis-sdk

v1.0.4

Published

A simple payment integration for your website that allows secure bank payments through Open Banking.

Readme

AcountPay SDK

A simple payment integration for your website that allows secure bank payments through Open Banking.

5-Minute Integration Guide

Step 1: Add the SDK to your website

Add this script tag to your HTML page (preferably in the <head> section):

<script src="https://cdn.acountpay.com/sdk/acount.umd.js"></script>

Step 2: Create a payment button

Option 1: Use our Button Generator (Recommended)

Visit buttons.acountpay.com to generate custom payment buttons or banners.

Option 2: Add payment buttons manually

<button id="pay-button">Pay with AcountPay</button>

<script>
  document.getElementById('pay-button').addEventListener('click', function() {
    // Initialize the SDK with your client ID
    const acount = new Acount({
      clientId: "YOUR_CLIENT_ID" // Replace with your client ID from AcountPay dashboard
    });
    
    // Start the payment flow
    acount.initiatePayment({
      amount: 99.99, // The amount to charge (in your currency)
      referenceNumber: "ORDER-123", // Your unique order reference
      onSuccess: function(result) {
        // Handle successful payment
        console.log("Payment successful!", result);
        // Redirect to thank you page or show success message
      },
      onError: function(error) {
        // Handle payment error
        console.error("Payment failed", error);
      }
    });
  });
</script>

Step 3: That's it!

Your integration is now complete. Test the payment flow by clicking your payment button.

Platform-Specific Guides

Shopify

  1. Go to your Shopify admin → Online StoreThemesEdit HTML/CSS
  2. Find the theme.liquid file and add our script before the closing </head> tag:
    <script src="https://cdn.acountpay.com/sdk/acount.umd.js"></script>
  3. Navigate to SettingsCheckoutOrder status page
  4. Add the payment button code in the "Additional scripts" section

WooCommerce

  1. Install and activate the "Header and Footer Scripts" plugin
  2. Go to SettingsHeader and Footer Scripts
  3. Add our script to the "Scripts in Header" section:
    <script src="https://cdn.acountpay.com/sdk/acount.umd.js"></script>
  4. Go to AppearanceTheme EditorAdditional CSS and add button styling

Advanced Usage

For registered users with accounts:

const acount = new Acount({
  clientId: "YOUR_CLIENT_ID"
});

acount.initiateUserPaymentByEmail({
  amount: 99.99,
  requestId: "ORDER-123",
  callbackURL: "https://yourwebsite.com/payment-callback"
});

Important Implementation Notes

Client ID

Replace "YOUR_CLIENT_ID" with your actual client ID from the AcountPay dashboard. Each merchant has a unique client ID for authentication.

Amount

The amount field should be your actual transaction amount:

  • Use your cart total, product price, or calculated amount
  • Example: Replace amount: 1 with amount: cartTotal or amount: productPrice

Reference Number

The referenceNumber (or requestId) should be your unique order/transaction identifier:

  • Use your order ID, invoice number, or transaction reference
  • Example: Replace random generation with referenceNumber: orderId or requestId: invoiceNumber
  • This allows you to match successful payments back to orders in your system

Real Implementation Example

// Instead of demo values:
const acount = new Acount({
  clientId: "YOUR_CLIENT_ID_HERE" // Replace with actual client ID
});

acount.initiatePayment({
  amount: 1, // Replace with actual amount
  referenceNumber: "PAY" + String(Math.random()), // Replace with actual reference
  // ... other options
});

// Use actual values:
const acount = new Acount({
  clientId: "682ad984-e692-4438-8503-b7e8b6ca1f94" // Your real client ID
});

acount.initiatePayment({
  amount: cartTotal, // Your actual transaction amount
  referenceNumber: orderId, // Your actual order reference
  // ... other options
});

Need Help?