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

sumup-capacitor-plugin

v3.1.0

Published

SumUp SDK Capacitor Plugin

Readme

sumup-capacitor-plugin

Capacitor Plugin for the SumUp SDK – Native card terminal integration for Android and iOS.


✅ Prerequisites (iOS&Android)


📦 Install

npm install sumup-capacitor-plugin
npx cap sync

📱 Android Setup

✅ Requirements

| Requirement | Version | | --------------------- | --------------- | | Android SDK | minSdkVersion 26 | | Target SDK | 31 or higher | | Android Gradle Plugin | 7.3.0 or later | | Kotlin | 1.7.21 or later | | Java | 11 or later |


🔧 Configuration

  1. Add SumUp Maven repository In android/build.gradle:

    allprojects {
        repositories {
            maven { url '[https://maven.sumup.com/releases](https://maven.sumup.com/releases)' }
            // ... other repositories ...
        }
    }
  2. Add SumUp SDK dependency In android/app/build.gradle:

    dependencies {
        implementation 'com.sumup:merchant-sdk:5.0.3'
        // ... other dependencies ...
    }
  3. Set minimum SDK version In gradle.properties or variables.gradle:

    minSdkVersion = 26

🍏 iOS Setup

✅ Requirements

| Requirement | Version | | ----------- | ---------------- | | Xcode | 14.x or later | | iOS SDK | 13.0 or later | | Swift | 5.0 or later | | CocoaPods | 1.11.x or later |


🔧 Configuration

  1. Add SumUp SDK Dependency The Capacitor plugin should already contain a .podspec file. Ensure it includes the SumUpSDK dependency. In YourPluginName.podspec:

    s.dependency 'SumUpSDK'
  2. Install Pods After verifying the dependency, run the sync command from your project's root directory. This will install the SDK into your iOS project.

    npx cap sync ios
  3. Configure Info.plist The SumUp SDK requires several keys in your app's Info.plist file to function correctly. Open ios/App/App/Info.plist and add the following keys inside the main <dict> tag:

    <key>LSApplicationQueriesSchemes</key>
    <array>
        <string>sumup</string>
    </array>
    <key>CFBundleURLTypes</key>
    <array>
        <dict>
            <key>CFBundleURLSchemes</key>
            <array>
                <string>com.example.app.sumup</string>
            </array>
        </dict>
    </array>
    <key>NSBluetoothAlwaysUsageDescription</key>
    <string>This app needs Bluetooth access to connect to SumUp card readers.</string>
    • LSApplicationQueriesSchemes allows your app to check if the SumUp app is installed.
    • CFBundleURLTypes registers a unique URL scheme so that the SumUp app (or a web flow) can redirect back to your application after an operation. You must replace com.example.app.sumup with a unique identifier for your app.
    • NSBluetoothAlwaysUsageDescription is the message shown to the user when the app requests Bluetooth permission to connect to a card reader.

🧪 Sample App

https://github.com/simonezucaro/sumup-capacitor-plugin/tree/main/demo-sumup-app


📚 API Reference

setup(...)

setup(options: { affiliateKey: string; }) => Promise<{ message: string; }>

Initializes the SumUp SDK. Must be called once before any other operations.

| Param | Type | | ------------- | -------------------------------------- | | options | { affiliateKey: string; } |

Returns: Promise<{ message: string; }>


login()

login() => Promise<{ resultCode: number; message: string; }>

Starts the login flow.

Returns: Promise<{ resultCode: number; message: string; }>


isLoggedIn()

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

Checks if the user is currently logged in.

Returns: Promise<{ isLoggedIn: boolean; }>


getCurrentMerchant()

getCurrentMerchant() => Promise<{ merchantCode: string; currency: string; }>

Retrieves the details of the current merchant.

Returns: Promise<{ merchantCode: string; currency: string; }>


logout()

logout() => Promise<void>

Performs a logout.


prepareForCheckout()

prepareForCheckout() => Promise<void>

Prepares the terminal for checkout (warm-up).


openCardReaderPage()

openCardReaderPage() => Promise<{ resultCode: number; message: string; }>

Opens the card reader settings screen.

Returns: Promise<{ resultCode: number; message: string; }>


checkout(...)

checkout(options: { amount: number; currency?: string; title?: string; foreignTransactionId?: string; }) => Promise<{ resultCode: number; message: string; transactionCode?: string; }>

Performs a payment.

| Param | Type | | ------------- | -------------------------------------------------------------------------------------------------- | | options | { amount: number; currency?: string; title?: string; foreignTransactionId?: string; } |

Returns: Promise<{ resultCode: number; message: string; transactionCode?: string; }>