Socket
Socket
Sign inDemoInstall

expo-payments-stripe

Package Overview
Dependencies
Maintainers
27
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

expo-payments-stripe

Provides support for payments through Stripe and Apple Pay on iOS (in bare apps), and Stripe on Android (plus Android Pay with bare apps).


Version published
Maintainers
27
Created
Source

This library has been deprecated in favor of @stripe/stripe-react-native.

expo-payments-stripe

Provides support for payments through Stripe and Apple Pay on iOS (in bare apps), and Stripe on Android (plus Android Pay with bare apps).

API documentation

Installation in managed Expo projects

For managed managed Expo projects, please follow the installation instructions in the API documentation for the latest stable release.

Installation in bare React Native projects

For bare React Native projects, you must ensure that you have installed and configured the react-native-unimodules package before continuing.

Add the package to your npm dependencies

expo install expo-payments-stripe
  • Include the config plugin in your app.config.js or app.json. Add the following props:
    • scheme is the redirect URI that's used for returning to the app after an external payment. This should not match one of your existing schemes as it'll redirect to a special Activity on Android.
    • merchantId is an Apple ID that's required for making payments. This value should match the merchantId property used with setOptionsAsync({ ... }) in your React code.
      • List all of your existing IDs here: View IDs
      • Or create a new merchant ID here: Create ID
{
  "plugins": [
    [
      "expo-payments-stripe",
      {
        "scheme": "your-redirect-uri",
        "merchantId": "merchant.<com.example.development>"
      }
    ]
  ]
}
  • Regenerate the native folders with expo eject
  • Build the project with yarn ios and yarn android

Configure for iOS

Run npx pod-install after installing the npm package.

Configure for Android

No additional set up necessary.

Contributing

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

Keywords

FAQs

Package last updated on 24 Jun 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc