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

@capgo/capacitor-stripe-pay

v8.0.4

Published

Capacitor plugin for Stripe Payment Sheet, Apple Pay, and Google Pay.

Readme

@capgo/capacitor-stripe-pay

Capacitor plugin for Stripe Payment Sheet, Apple Pay, and Google Pay on iOS and Android. Maintained by Capgo with the latest Stripe SDKs and fixes from the community fork.

Subscriptions: For App Store / Play Store subscriptions, use @capgo/native-purchases instead of this plugin.

Why this plugin

This plugin is a maintained fork of @capacitor-community/stripe. Capgo split the community project into focused packages — each with its own docs, example app, and CI.

We track open issues and pull requests in the community repository, merge relevant fixes into our repos, and ship them on current Stripe SDKs. Our goal is to be more reactive than the community maintainers when bugs land or platforms change.

This package covers Payment Sheet, Apple Pay, and Google Pay.

If you use the community package today, this is the maintained upgrade path from the community package.

Documentation

The most complete documentation is available here: https://capgo.app/docs/plugins/stripe-pay/

Compatibility

| Plugin version | Capacitor compatibility | Maintained | | -------------- | ----------------------- | ---------- | | v8.. | v8.. | ✅ | | v7.. | v7.. | On demand |

Note: The major version of this plugin follows the major version of Capacitor. Use the version that matches your Capacitor installation (e.g., plugin v8 for Capacitor 8). Only the latest major version is actively maintained.

Install

You can use our AI-Assisted Setup to install the plugin. Add the Capgo skills to your AI tool using the following command:

npx skills add https://github.com/cap-go/capacitor-skills --skill capacitor-plugins

Then use the following prompt:

Use the `capacitor-plugins` skill from `cap-go/capacitor-skills` to install the `@capgo/capacitor-stripe-pay` plugin in my project.

If you prefer Manual Setup, install the plugin by running the following commands and follow the platform-specific instructions below:

# Install (choose one)
npm install @capgo/capacitor-stripe-pay
pnpm add @capgo/capacitor-stripe-pay
yarn add @capgo/capacitor-stripe-pay
bun add @capgo/capacitor-stripe-pay

# Then sync Capacitor (choose one)
npx cap sync
pnpm exec cap sync
yarn cap sync
bunx cap sync

Platform setup

  1. Create a Stripe account and obtain your publishable key.
  2. On your backend, create PaymentIntents or SetupIntents and return the clientSecret to your app.
  3. Call Stripe.initialize({ publishableKey }) once at app startup before any other Stripe API.
  4. Configure Apple Pay and Google Pay in the Stripe Dashboard and native projects as described in the Capgo docs.

Usage

import { Stripe } from '@capgo/capacitor-stripe-pay';

await Stripe.initialize({ publishableKey: 'pk_test_...' });

await Stripe.createPaymentSheet({
  paymentIntentClientSecret: 'pi_..._secret_...',
  merchantDisplayName: 'My Store',
});

const result = await Stripe.presentPaymentSheet();
console.log(result.paymentResult);

API

initialize(...)

initialize(opts: StripeInitializationOptions) => Promise<void>

| Param | Type | | ---------- | ----------------------------------------------------------------------------------- | | opts | StripeInitializationOptions |


handleURLCallback(...)

handleURLCallback(opts: StripeURLHandlingOptions) => Promise<void>

iOS Only

| Param | Type | | ---------- | ----------------------------------------------------------------------------- | | opts | StripeURLHandlingOptions |


Interfaces

StripeInitializationOptions

| Prop | Type | Description | | -------------------- | ------------------- | ------------------------------------------------- | | publishableKey | string | | | stripeAccount | string | Optional. Making API calls for connected accounts |

StripeURLHandlingOptions

| Prop | Type | | --------- | ------------------- | | url | string |