1.0.18 • Published 4 years ago

@tingcore/react-native-stripe v1.0.18

Weekly downloads
-
License
-
Repository
github
Last release
4 years ago

react-native-stripe

Getting started

$ npm install @tingcore/react-native-stripe --save

or

$ yarn add @tingcore/react-native-stripe

Mostly automatic installation

$ react-native link @tingcore/react-native-stripe

Manual installation

iOS

  1. In XCode, in the project navigator, right click LibrariesAdd Files to [your project's name]
  2. Go to node_modules@tingcore/react-native-stripe and add RNStripe.xcodeproj
  3. In XCode, in the project navigator, select your project. Add libRNStripe.a to your project's Build PhasesLink Binary With Libraries
  4. Run your project (Cmd+R)<

Android

  1. Open up android/app/src/main/java/[...]/MainApplication.java
  • Add import com.tingcore.stripe.RNStripePackage; to the imports at the top of the file
  • Add new RNStripePackage() to the list returned by the getPackages() method
  1. Append the following lines to android/settings.gradle:
    include ':react-native-stripe'
    project(':react-native-stripe').projectDir = new File(rootProject.projectDir, 	'../node_modules/react-native-stripe/android')
  2. Insert the following lines inside the dependencies block in android/app/build.gradle:
      compile project(':react-native-stripe')

Usage

import RNStripe from 'react-native-stripe';

try {
  await RNStripe.confirmPaymentIntent({
    clientId,
    sourceId,
    returnURL
  });
  // at this point 3d secure has been confirmed or rejected by the user.
} catch(e) {
  // an error occurred
}
  

Ownership:

Owning team: Interactions Tech Lead: @Vincenzo Scamporlino

1.0.18

4 years ago

1.0.17

4 years ago

1.0.16

4 years ago

1.0.15

4 years ago

1.0.14

4 years ago

1.0.13

4 years ago

1.0.12

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago