sumup

Creator: coderz1093

Last updated:

0 purchases

sumup Image
sumup Images

Languages

Categories

Add to Cart

Description:

sumup

sumup #

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 #

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

Installing #
Add sumup to your pubspec.yaml:
dependencies:
sumup:
copied to clipboard
Import sumup:
import 'package:sumup/sumup.dart';
copied to clipboard
Getting Started #
Init SumUp SDK:
Sumup.init(affiliateKey);
copied to clipboard
Login:
Sumup.login();
copied to clipboard
Or login with token:
Sumup.loginWithToken(token);
copied to clipboard
Choose your preferred terminal:
Sumup.openSettings();
copied to clipboard
Prepare terminal for checkout:
Sumup.prepareForCheckout();
copied to clipboard
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);

Sumup.checkout(request);
copied to clipboard
Available APIs #
Sumup.init(affiliateKey);

Sumup.login();

Sumup.isLoggedIn;

Sumup.merchant;

Sumup.openSettings();

Sumup.prepareForCheckout();

Sumup.checkout(request);

Sumup.logout();

// iOS only
Sumup.isCheckoutInProgress;

copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.