1.0.18 • Published 4 years ago
@tingcore/react-native-stripe v1.0.18
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
- In XCode, in the project navigator, right click
Libraries
➜Add Files to [your project's name]
- Go to
node_modules
➜@tingcore/react-native-stripe
and addRNStripe.xcodeproj
- In XCode, in the project navigator, select your project. Add
libRNStripe.a
to your project'sBuild Phases
➜Link Binary With Libraries
- Run your project (
Cmd+R
)<
Android
- 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 thegetPackages()
method
- 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')
- 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