Provides support for payments through Stripe and Apple Pay on iOS (in ExpoKit and bare apps), and Stripe on Android (plus Android Pay with ExpoKit and bare apps).
This package is pre-installed in managed Expo projects. You may skip the rest of the installation guide if this applies to you.
For bare React Native projects, you must ensure that you have installed and configured the
@unimodules/core package before continuing.
Add the package to your npm dependencies
npm install expo-payments-stripe
Configure for iOS
Add the dependency to your
Podfile and then run
pod 'EXPaymentsStripe', path: '../node_modules/expo-payments-stripe/ios'
Configure for Android
- Append the following lines to
include ':expo-payments-stripe'project(':expo-payments-stripe').projectDir = new File(rootProject.projectDir, '../node_modules/expo-payments-stripe/android')
- Insert the following lines inside the dependencies block in
MainApplication.java, import the package and add it to the
private final ReactModuleRegistryProvider mModuleRegistryProvider = new ReactModuleRegistryProvider(Arrays.<Package>, Arrays.<SingletonModule>);
Contributions are very welcome! Please refer to guidelines described in the contributing guide.