sumup 0.2.3 copy "sumup: ^0.2.3" to clipboard
sumup: ^0.2.3 copied to clipboard

outdated

Flutter wrapper to use the Sumup SDK. With this plugin, your app can easily connect to a Sumup terminal, login and accept card payments on Android and iOS.

sumup #

pub package likes popularity pub points

A Flutter wrapper to use the Sumup SDK.

With this plugin, your app can easily connect to a Sumup terminal, login and accept card payments on Android and iOS.

Prerequisites #

  1. Registered for a merchant account via SumUp's country websites (or received a test account).
  2. Received SumUp card terminal: Air, Air Lite, PIN+ terminal, Chip & Signature reader, or SumUp Air Register.
  3. Requested an Affiliate (Access) Key and registered your application ID via SumUp Dashboard for Developers.
  4. Deployment Target iOS 10.0 or later.

Installing #

Add sumup to your pubspec.yaml:

dependencies:
  sumup:

Import sumup:

import 'package:sumup/sumup.dart';

Getting Started #

Init Sumup SDK:

Sumup.init(affiliateKey);

Login:

Sumup.login();

Choose your preferred terminal:

Sumup.openSettings();

Complete a transaction:

var payment = SumupPayment(
    title: 'Test payment',
    total: 1.2,
    currency: 'EUR',
    foreignTransactionID: '',
    saleItemsCount: 0,
    skipSuccessScreen: false,
    tip: .0,
);

var request = SumupPaymentRequest(
    payment,
    info: {
        'AccountId': 'taxi0334',
        'From': 'Paris',
        'To': 'Berlin',
    });

Sumup.checkout(request);

Available APIs #

Sumup.init(affiliateKey);

Sumup.login();

Sumup.isLoggedIn;

Sumup.merchant;

Sumup.openSettings();

Sumup.checkout(request);

Sumup.logout();

// iOS only
Sumup.isCheckoutInProgress;

37
likes
0
pub points
81%
popularity

Publisher

verified publisherpurplesoft.io

Flutter wrapper to use the Sumup SDK. With this plugin, your app can easily connect to a Sumup terminal, login and accept card payments on Android and iOS.

Homepage
Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on sumup