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

@thelearmondcorporation/learmond-pay-element

v0.0.2

Published

Learmond Pay Element (LPE) - A reusable payment sheet/modal for web apps, supporting card, bank, Apple Pay, and Google Pay. Built on Stripe.

Readme

LPE (Learmond Pay Element)

A reusable Flutter package for Stripe payment sheets, providing a simple modal interface for card, bank, Apple Pay, and Google Pay payments.

Features

  • Modal bottom sheet UI
  • Card, US bank, EU bank, Apple Pay, Google Pay support
  • Built on stripe.
  • Easy API for payment confirmation and result handling

Installation

Install via npm:

npm install learmond-pay-element

Framework-specific Usage

import { LearmondPaySheet } from 'learmond-pay-element';

const result = await LearmondPaySheet.show({
  publishableKey: 'pk_test_...',
  clientSecret: 'pi_..._secret_...',
  method: 'card', // or 'us_bank', 'eu_bank', 'apple_pay', 'google_pay'
  title: 'Pay $10.00',
});
if (result.success) {
  // Payment succeeded
}

React

import { LearmondPaySheet } from 'learmond-pay-element';

async function handlePay() {
  const result = await LearmondPaySheet.show({
    publishableKey: 'pk_test_...',
    clientSecret: 'pi_..._secret_...',
    method: 'card',
    title: 'Pay $10.00',
  });
  if (result.success) {
    // Payment succeeded
  }
}

Vue

import { LearmondPaySheet } from 'learmond-pay-element';

export default {
  methods: {
    async handlePay() {
      const result = await LearmondPaySheet.show({
        publishableKey: 'pk_test_...',
        clientSecret: 'pi_..._secret_...',
        method: 'card',
        title: 'Pay $10.00',
      });
      if (result.success) {
        // Payment succeeded
      }
    }
  }
}

Vanilla JS

<script src="/path/to/LearmondPaySheet.js"></script>
<script>
  async function handlePay() {
    const result = await window.LearmondPaySheet.show({
      publishableKey: 'pk_test_...',
      clientSecret: 'pi_..._secret_...',
      method: 'card',
      title: 'Pay $10.00',
    });
    if (result.success) {
      // Payment succeeded
    }
  }
</script>

API

  • LearmondPaySheet.show({...}) — Shows the payment sheet and returns a result object: { success, status, paymentIntentId, error, rawResult }.
  • Supports custom titles, amounts, and button labels.

Native device Apple / Google Pay options

If you want to use web-native Apple Pay (ApplePaySession) or Google Pay (Google Pay JS SDK) without Stripe, provide the following optional values via LearmondPaySheet.show() or attachLearmondPayButtons(...):

  • merchantId — your Apple Merchant ID (required for Apple Pay).
  • appleMerchantValidateUrl or validateMerchantUrl — endpoint on your server to exchange Apple merchant validation URLs for the merchant session (must perform server-side validation with Apple).
  • appleProcessPaymentUrl or processPaymentUrl — endpoint on your server to accept/process Apple Pay tokens (gateway/tokenization on your backend).
  • googleProcessPaymentUrl — endpoint on your server to accept/process Google Pay tokens.
  • googleGateway — gateway parameter to pass into Google tokenization (if using a gateway such as Stripe you may set gateway: 'stripe').
  • googleGatewayMerchantId — gateway merchant id used by your gateway.
  • googleMerchantId — your Google Merchant ID (sometimes used instead of gateway fields in advanced setups).

These values are forwarded to the underlying web-native flows (ApplePaySession/Google Pay SDK) so your server can perform the required merchant validation and processing. See the example test_apps/JS_test_app/landing.js for how to pass demo endpoints for local testing.

Example

See example/ for a full integration example.

License

MIT

Author

The Learmond Corporation