@sumup/sdk
    Preparing search index...

    @sumup/sdk

    sumup-ts

    NPM Version JSR Version Build Status

    IMPORTANT: This SDK is under heavy development and subject to breaking changes.

    The Node.js SDK for the SumUp API.

    To learn more, check out our API Reference and Developer Documentation. You can also find the full documentation of the SumUp Node.js SDK at sumup.github.io/sumup-ts.

    Node 18 or higher.

    Install the package with:

    npm install @sumup/sdk
    # or
    yarn add @sumup/sdk

    Install from jsr:

    deno add jsr:@sumup/sdk
    # or
    npx jsr add @sumup/sdk
    const sumup = require('@sumup/sdk')({
    apiKey: 'sup_sk_MvxmLOl0...'
    });

    sumup.merchant.get()
    .then(merchant => console.info(merchant))
    .catch(error => console.error(error));

    Or using ES modules and async/await:

    import SumUp from "@sumup/sdk";

    const client = new SumUp({
    apiKey: 'sup_sk_MvxmLOl0...',
    });

    const merchant = await client.merchant.get();
    console.info(merchant);

    Run examples:

    npx tsx examples/checkout/index.ts