Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

expo-payments-stripe

4.0.0 • Public • Published

expo-payments-stripe

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).

API documentation

Installation

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 install.

pod 'EXPaymentsStripe', path: '../node_modules/expo-payments-stripe/ios'

Configure for Android

  1. Append the following lines to android/settings.gradle:
include ':expo-payments-stripe'
project(':expo-payments-stripe').projectDir = new File(rootProject.projectDir, '../node_modules/expo-payments-stripe/android')
  1. Insert the following lines inside the dependencies block in android/app/build.gradle:
api project(':expo-payments-stripe')
  1. In MainApplication.java, import the package and add it to the ReactModuleRegistryProvider list:
import expo.modules.payments.stripe.StripePackage;
private final ReactModuleRegistryProvider mModuleRegistryProvider = new ReactModuleRegistryProvider(Arrays.<Package>asList(
  // Your other packages will be here 
  new StripePackage()
)Arrays.<SingletonModule>asList());

Contributing

Contributions are very welcome! Please refer to guidelines described in the contributing guide.

install

npm i expo-payments-stripe

Downloadsweekly downloads

38,928

version

4.0.0

license

MIT

homepage

docs.expo.io

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
Report a vulnerability