react-native-sumup-ios
v0.1.5
Published
Bridge to use the SumUp SDK
Downloads
1
Maintainers
Readme
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.