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

@capacitor-pay/sumup

v0.0.1

Published

Capacitor plugin wrapping the SumUp SDK for in-app card and Tap to Pay checkout. SumUp provider for capacitor-pay.

Downloads

50

Readme

capacitor-pay-sumup

SumUp provider plugin for @capacitor-pay/core, wrapping the SumUp SDK for in-app card and Tap to Pay checkout. Can also be used standalone without @capacitor-pay/core.

Install

npm install @capacitor-pay/sumup
npx cap sync

Android setup

This plugin depends on the SumUp Merchant SDK for Android (com.sumup:merchant-sdk:7.0.0), which:

  • requires minSdkVersion 26 or higher in your app's android/variables.gradle
  • is hosted on SumUp's own Maven repository

If your app uses Gradle's centralized repository management (dependencyResolutionManagement in android/settings.gradle), add SumUp's repository there:

dependencyResolutionManagement {
    repositories {
        // ...existing repositories
        maven { url 'https://maven.sumup.com/releases' }
    }
}

(The plugin's build.gradle already declares this repository for older, non-centralized setups, so most projects need no extra configuration.)

Tap to Pay

checkTapToPay() / activateTapToPay() wrap Tap to Pay on iPhone and are iOS-only. On Android, checkTapToPay() resolves { available: false, activated: false } and activateTapToPay() rejects. SumUp's Tap to Pay on Android is a separate SDK (requiring dedicated Maven credentials from SumUp) and is not bundled here.

API

setup(...)

setup(options: { affiliateKey: string }) => Promise<{ success: boolean }>

Configure the SDK with a SumUp affiliate key. Call once before login/checkout.

login(...)

login(options: { accessToken: string }) => Promise<{ success: boolean }>

Log in to a SumUp merchant account using an OAuth access token.

isLoggedIn()

isLoggedIn() => Promise<{ isLoggedIn: boolean }>

Check whether a merchant is currently logged in. The session persists across app restarts, so call this on launch to decide whether login() is needed.

getCurrentMerchant()

getCurrentMerchant() => Promise<SumUpMerchant>

Get the currency and merchant code of the currently logged-in merchant. Both fields are null if no merchant is logged in. Useful for validating that checkout()'s currency matches the merchant's currency before presenting checkout.

logout()

logout() => Promise<{ success: boolean }>

Log out of the current SumUp merchant account.

prepareForCheckout()

prepareForCheckout() => Promise<void>

Let the SDK know that a checkout is imminent (e.g. while the user is entering an amount), so it can take steps like waking a connected card reader ahead of time.

checkout(...)

checkout(options: SumUpCheckoutOptions) => Promise<SumUpCheckoutResult>

Present the SumUp checkout flow for a single payment. options accepts an optional tipAmount and foreignTransactionID. The resolved result includes a transactionCode for reconciling the payment with SumUp's REST API, and (iOS only) additionalInfo with card details.

openCheckoutPreferences()

openCheckoutPreferences() => Promise<{ success: boolean }>

Present SumUp's checkout preferences screen, where the merchant can pair/configure a card reader and adjust checkout settings.

checkTapToPay()

checkTapToPay() => Promise<SumUpTapToPayStatus>

Check whether Tap to Pay on iPhone is available and activated for this device/account. Always resolves { available: false, activated: false } on Android, which does not support Tap to Pay through this plugin.

activateTapToPay()

activateTapToPay() => Promise<{ success: boolean }>

Present the Tap to Pay on iPhone activation flow. Rejects on Android, which does not support Tap to Pay through this plugin.