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

@getpayin/expo-checkout

v0.1.1

Published

Take Apple Pay, Google Pay and card payments inside an Expo app with the hosted GetPayIn checkout.

Downloads

537

Readme

@getpayin/expo-checkout

Take Apple Pay, Google Pay and card payments in your Expo app. The hosted GetPayIn checkout opens inside your app, under your app's own top bar, with no browser bar.

| Phone | Where the checkout opens | Payment methods | | ---------------------------------------- | ------------------------- | ---------------- | | iPhone | Your app's own screen | Apple Pay, card | | Android, after Google approves your app | Your app's own screen | Google Pay, card | | Android, before Google approves your app | The phone's browser sheet | Google Pay, card |

Google Pay is not offered on iPhone: Google only allows it in Safari, not inside apps.

This package holds no secret and signs nothing. Your server creates the payment and confirms it; the app only shows the checkout and reports what came back.

Install

npx expo install @getpayin/expo-checkout react-native-webview react-native-safe-area-context expo-web-browser expo-linking expo-constants

Then rebuild your app (npx expo run:ios, npx expo run:android, or a new EAS build). Installing alone is not enough: the web view is native code.

You also need a development or store build, a GetPayIn integration of type Mobile App, and a server that creates and confirms payments. Setup covers all three.

Quick start

Wrap your app once:

// app/_layout.tsx (expo-router) or App.tsx
import { GetPayInProvider } from '@getpayin/expo-checkout';

export default function RootLayout() {
  return <GetPayInProvider>{/* your navigation */}</GetPayInProvider>;
}

Then take a payment:

import { GetPayInCheckout } from '@getpayin/expo-checkout';

// Your server calls POST /api/integration/init and sends back checkout_url.
const { checkoutUrl, invoiceId } = await myApi.createPayment(order);

const result = await GetPayInCheckout.open(checkoutUrl, {
  returnUrl: 'myapp://payment-return', // must match your Mobile App Return Scheme
  expectedInvoiceId: invoiceId, // ties the result to this checkout; pass it whenever you have one
  googlePayInApp: false, // set true only after Google approves your app
});

if (result.status === 'paid') {
  await myApi.confirmPayment(result.invoiceId);
}

result.status is paid, not_paid or cancelled. Leave expectedInvoiceId out rather than passing null or an empty value, which are refused with GetPayInConfigError. Taken as "not given" they would accept a paid link for any invoice. A not_paid the package decided for itself carries a code, which a genuine decline does not; see Taking payments.

The result in the app is not proof of payment. Your return scheme is public, so anything on the phone can forge that link. Confirm the invoice.paid webhook on your server before you deliver the order. Security model explains what the package does on its side and why it is not enough on its own.

If you use expo-router, you need one more file or payers will see "Unmatched Route" after paying. See Setup.

Documentation

| Guide | What is in it | | ------------------------------------------- | ------------------------------------------------------------------------------------------ | | Setup | Prerequisites, install, the provider, expo-router, and the iOS and Android configuration. | | Taking payments | Opening a checkout, reading the result, confirming it, retries, and using your own screen. | | Google Pay on Android | Getting Google's approval for in-app Google Pay, and the device requirements. | | API reference | Every export, option, type and error. | | Security model | What the package guarantees, what it cannot, and what your server must do. | | Troubleshooting | The failures that are silent: no wallet button, HTTP 403, a blank screen. | | Architecture | How the package is laid out and why, for anyone changing it. |

Contributing

CONTRIBUTING.md has the layering rules, the house style and the by-hand device checks. CHANGELOG.md records what changed.

Reporting a vulnerability

Privately, please. See SECURITY.md.

License

MIT