0.1.5 • Published 3 years ago
react-native-sumup-ios v0.1.5
react-native-sumup-ios
Support SumUp on iOS (Bridge to use the SumUp SDK)
Installation
npm install react-native-sumup-iosor
yarn add react-native-sumup-iosiOS
npx pod-installAndroid
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.