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

@pcibooking/ewallet

v1.3.2

Published

PCI Booking library for eWallet payments (GooglePay, ApplePay, PayPal, Banks...)

Readme

npm version PCI DSS Compliant TypeScript

Installation

npm i @pcibooking/ewallet

Quick Start

Initialize the Engine

const engine = new eWallet.Engine(sessionToken, requiredAncillaryInfo, language, uiOptions);

| Parameter | Description | |-----------|-------------| | sessionToken | Required. Token obtained from the PCI Booking service | | requiredAncillaryInfo | Optional. Billing/shipping address requirements (applicable on most eWallets) | | language | Optional. Language code for UI localization. Supported languages: EN, ES, FR, DE, IT, PT, NL, PL, RU, JA, ZH, KO, AR, HE, TR, SV, NO, DA, FI, and more. | | uiOptions | Optional. Client-side UI options (see below) |

UI Options

The uiOptions object controls presentation of the library-rendered UI.

| Field | Type | Description | |-------|------|-------------| | hideLogo | boolean | When true, the merchant logo is not rendered at the top of the card-entry form. Defaults to false. | | displayMode | 'popup' \| 'iframe' | How the CardPay card-entry form is presented. 'popup' (default) opens it in a separate, centered browser window. 'iframe' embeds it in an in-page iframe. | | iframeContainerSelector | string | Only used when displayMode is 'iframe'. CSS selector of the element that should host the iframe (e.g. '#card-form-host'). When provided, the iframe is embedded inline into that element. When omitted, the iframe is shown as a centered modal overlay on the page. |

const uiOptions = {
    hideLogo: true,
};
const engine = new eWallet.Engine(sessionToken, requiredAncillaryInfo, language, uiOptions);
CardPay form display mode

By default the CardPay card-entry form opens in a separate popup window. Set displayMode: 'iframe' to render it inside an in-page iframe instead:

// Centered modal overlay (no container selector)
const uiOptions = { displayMode: 'iframe' };

// Inline — embedded into an element you control
const uiOptions = { displayMode: 'iframe', iframeContainerSelector: '#card-form-host' };

const engine = new eWallet.Engine(sessionToken, requiredAncillaryInfo, language, uiOptions);

Note: displayMode applies to the CardPay form only. Other providers continue to use their standard flow.

Detect Available eWallets

const available = engine.checkAvailability();

Returns the list of eWallets available on the specific device and browser.

Start a Payment Session

engine.payBy(eWalletList, callback, buttonProperties);

Starts the payment process using the specified list of eWallet providers.

| Parameter | Description | |-----------|-------------| | eWalletList | Required. List of requested eWallet providers and their respective button properties | | callback | Required. Callback handler called when the payment operation completes | | buttonProperties | Optional. Button styling properties |

Obtaining Results

Use the following methods to get data on the current session:

| Method | Description | |--------|-------------| | getSessionType() | Returns the session type (CHARGE, TOKENIZE, etc.) | | parseResultToken() | Parses and returns the result token from the payment operation | | getBillingInfo() | Returns the billing information collected during the payment | | getShippingInfo() | Returns the shipping information collected during the payment |

Documentation

In order to use this library to process payments, you need to have an account with Orchestra. If you do not have one yet, please go to our website to sign up. If you already have an account, check out our documentation pages to read our integration guides, view the full API reference and see instructions on generating a session token for the library.

Support

For assistance, visit our contact form or email [email protected].

Changelog

See CHANGELOG.md for version history.