New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@react-native-payments/stripe

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-native-payments/stripe

React Native Payments add-on for processing payments with Stripe.

  • 0.4.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

react-native-payments-addon-stripe

React Native Payments add-on for processing payments with Stripe.

Installation

First, download the package:

$ yarn add react-native-payments-addon-stripe

Second, install the React Native Payments CLI:

$ yarn add react-native-payments-cli

Lastly, link the native dependencies with the React Native Payments CLI:

$ yarn react-native-payments-cli -- link stripe

NOTE: react-native-payments-cli adds a Build Phase Script to your Xcode project that depends on Carthage.

Usage

In order to receive chargeable Stripe tokens as part of your PaymentResponse, you'll need to add some Stripe specific parameters to your PaymentMethodData.

Here's an example of a Stripe enabled Payment Method Data:

const METHOD_DATA = [{
  supportedMethods: ['apple-pay'],
  data: {
    merchantIdentifier: 'merchant.com.your-app.namespace',
    supportedNetworks: ['visa', 'mastercard', 'amex'],
    countryCode: 'US',
    currencyCode: 'USD',
+   paymentMethodTokenizationParameters: {
+     parameters: {
+       gateway: 'stripe',
+       'stripe:publishableKey': 'your_publishable_key',
+       'stripe:version': '5.0.0' // Only required on Android
+     }
+   }
  }
}];

Resources

Keywords

FAQs

Package last updated on 13 Jan 2018

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