Skip to content
Sumup SDK for React Native
Branch: master
Clone or download
Latest commit b3f9761 May 3, 2017
Type Name Latest commit message Commit time
Failed to load latest commit information.
RNSumup Compat with RN > 40 (#1) May 3, 2017
LICENSE Improved docs Mar 31, 2016
index.js v0.1.1 Release Mar 31, 2016
package.json v0.2.0 May 3, 2017


A React Native implementation of SumupSDK.

Sumup Login


First install the iOS Sumup SDK, instructions here.

Then, npm install react-native-sumup --save and add RNSumup.h and RNSumup.m to your project. Check that the *.m file is under Compile Sources.


This library has been tested with Sumup iOS SDK version 1.2.2.

Example usage

import Sumup from 'react-native-sumup'
// Setup Sumup
// Open login
  .then(response => {
    console.log('Response', response)
  .catch(error => {
    console.log('error', error)

// Checkout
let request = {
  totalAmount: '20.0',
  title: 'Test',
  currencyCode: 'EUR',
  paymentOption: Sumup.paymentOptionMobilePayment
  .then(response) => {
    console.log('Response', response)
  .catch(error) => {
    console.log('Error', error)


This library is still a work in progress, only some methods have been implemented. Please feel free to open any issues if you need another SDK method implemented.

Method Params Description
setupWithAPIKey apiKey: String Method to initialize SumupSDK.
presentLoginFromViewController completionBlock: function Opens a Sumup login view.
checkoutWithRequest request: Object, completionBlock(response): function, errorBlock(error): function Creates a Sumup payment request.
isLoggedIn Returns true if the user has logged-in into the SDK.

Request param

Param Type Description
totalAmount string Will be parsed as decimalNumber.
title string
currencyCode string
paymentOption SMPPaymentOptions An enum of type SMPPaymentOptions. Possible values: SMPPaymentOptionAny, SMPPaymentOptionCardReader, SMPPaymentOptionMobilePayment.



Development sponsor

This development has been sponsored by SupSpot.

You can’t perform that action at this time.