react-native-sumup-ios
TypeScript icon, indicating that this package has built-in type declarations

0.1.5 • Public • Published

react-native-sumup-ios

Support SumUp on iOS (Bridge to use the SumUp SDK)

Installation

npm install react-native-sumup-ios

or

yarn add react-native-sumup-ios

iOS

npx pod-install

Android

in progress...

Usage

import SumUpModule from 'react-native-sumup-ios';

Set up Affiliate Key

await SumUpModule.init(affiliateKey);
const isSDKIntegrated = await SumUpModule.testSDKIntegration();

Check login

const isLogin = await SumUpModule.checkLogin();

Prepare for checkout; wake up device, connection

const isLogin = await SumUpModule.prepareForCheckout();

Login with View Controller

await SumUpModule.loginWithViewController();

Login with access token

await SumUpModule.loginWithToken(accessToken);
await SumUpModule.checkout(checkoutRequest);

See https://github.com/sumup/sumup-ios-sdk to get more information about SumUpSDK.

Package Sidebar

Install

npm i react-native-sumup-ios

Weekly Downloads

0

Version

0.1.5

License

MIT

Unpacked Size

47.9 kB

Total Files

26

Last publish

Collaborators

  • nguyentc21