@tripleplaypay/react-native
v0.0.23
Published
Stripe SDK for React Native
Downloads
1,196
Readme
TPP React Native SDK
Getting Started
Install the SDK
npm install @tripleplaypay/react-native
iOS
To get started with the TPP React Native SDK on iOS, follow these steps:
- Install the TPP React Native SDK and link the pods:
npx pod-install
- Open the XCWorkspace file under
ios/
in XCode. You can do so from the commandline like this:
open ./ios/MyProject.xcworkspace
- Add the Bluetooth permission to your app's
Info.plist
file:
- The app's
Info.plist
must contain anNSBluetoothAlwaysUsageDescription
key with a string value explaining to the user how the app uses this data. - You can easily configure this from the Info tab. Click on the
+
button under any of the entries and selectPrivacy - Bluetooth Always Usage Description
and make sure to place an accurate description in the text box next to it.
- Under the signing and capabilities tab, make sure to set up your Apple account for signing the application.
- Add the `MagTekSDK.xcframework.
- Under the
General
tab, Click on the+
symbol - Select the library
Workspace > Pods > MagTekSDK.xcframework
- Click add
- Make sure to build the project in XCode first, this will place the app on your phone. Afterwards you can run the react-native server using:
npx react-native start
- Import the
@tripleplaypay/react-native
module in your project:
import {TPPSDKModule} from '@tripleplaypay/react-native';
- Prior to any usage, initialize the SDK with your publishable key:
TPPSDKModule.initialize('test-key-example');
Android
coming soon...