React Native SDK#
Plexy Drop-in and Components for React Native apps
The official Plexy client-side SDK for React Native. One JavaScript API for both iOS and Android, built on top of the native iOS and Android SDKs.iOS 15.0+ / Android 7.0 (API 24)+
Installation#
Copy install command: npm install @plexy/react-nativeiOS setup#
Android setup#
No additional configuration is required. The Plexy SDK is autolinked.Quick Start#
Creating a Session#
Sessions are created from your backend by calling the Plexy REST API directly:Pass session.id and session.sessionData to your mobile app.Drop-in#
Drop-in is presented as a native modal:Components#
Use individual Components for a custom checkout layout:Apple Pay#
Configure your merchant identifier in app.json (Expo) or Info.plist:<key>com.apple.developer.in-app-payments</key>
<array>
<string>merchant.money.plexy.example</string>
</array>
Enable Apple Pay in your checkout configuration:Google Pay#
Deep Links#
Handle redirect-based payment methods (e.g., 3D Secure) by registering a URL scheme:Error Handling#
Expo#
The SDK works with Expo's prebuild workflow. After installing the package, run:The SDK is not compatible with Expo Go because it includes native modules.