You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/stripe/README.md
+23-55
Original file line number
Diff line number
Diff line change
@@ -43,11 +43,13 @@ dart pub add flutter_stripe
43
43
44
44
#### Android
45
45
46
+
46
47
This plugin requires several changes to be able to work on Android devices. Please make sure you follow all these steps:
47
48
48
49
1. Use Android 5.0 (API level 21) and above
49
-
2. Use Kotlin version 1.5.0 and above: [example](https://github.com/flutter-stripe/flutter_stripe/blob/79b201a2e9b827196d6a97bb41e1d0e526632a5a/example/android/build.gradle#L2)
50
-
3. Using a descendant of `Theme.AppCompat` for your activity: [example](https://github.com/flutter-stripe/flutter_stripe/main/example/android/app/src/main/res/values/styles.xml#L15), [example night theme](https://github.com/flutter-stripe/flutter_stripe/blob/main/example/android/app/src/main/res/values-night/styles.xml#L16)
50
+
2. Use Kotlin version 1.5.0 and above: [example](https://github.com/flutter-stripe/flutter_stripe/blob/79b201a2e9b827196d6a97bb41e1d0e526632a5a/example/android/
51
+
.gradle#L2)
52
+
3. Using a descendant of `Theme.AppCompat` for your activity: [example](https://github.com/flutter-stripe/flutter_stripe/blob/main/example/android/app/src/main/res/values/styles.xml#L15), [example night theme](https://github.com/flutter-stripe/flutter_stripe/blob/main/example/android/app/src/main/res/values-night/styles.xml#L16)
51
53
4. Using an up-to-date Android gradle build tools version: [example](https://github.com/flutter-stripe/flutter_stripe/blob/main/example/android/build.gradle#L9) and an up-to-date gradle version accordingly: [example](https://github.com/flutter-stripe/flutter_stripe/blob/main/example/android/gradle/wrapper/gradle-wrapper.properties#L6)
52
54
5. Using `FlutterFragmentActivity` instead of `FlutterActivity` in `MainActivity.kt`: [example](https://github.com/flutter-stripe/flutter_stripe/blob/79b201a2e9b827196d6a97bb41e1d0e526632a5a/example/android/app/src/main/kotlin/com/flutter/stripe/example/MainActivity.kt#L6)
53
55
6. Rebuild the app, as the above changes don't update with hot reload
@@ -60,68 +62,34 @@ If you are having troubles to make this package to work on Android, join [this d
60
62
61
63
Compatible with apps targeting iOS 12 or above.
62
64
63
-
#### Web (Experimental)
65
+
To upgrade your iOS deployment target to 12.0, you can either do so in Xcode under your Build Settings, or by modifying IPHONEOS_DEPLOYMENT_TARGET in your project.pbxproj directly.
64
66
65
-
Now you can use Stripe with Flutter web! Notice right now it is highly experimental and only a subset of features is implemented.
67
+
You will also need to update in your Podfile:
66
68
67
-
Check the steps needed [here](https://github.com/flutter-stripe/flutter_stripe/tree/main/packages/stripe_web)
69
+
`platform :ios, '12.0'`
68
70
69
-
## Usage
70
71
71
-
The library provides three UI componets for accepting card payments: the `CardField`, `CardForm`, and the `Paymentsheet`.
72
+
#### Web (Experimental)
72
73
73
-
We recommend using the `PaymentSheet` for the most easy and smooth Stripe integration. It provides out of the box support for:
74
-
- Localized labels and error messages to the users
75
-
- Build-in animations
76
-
- Build-in Google Pay and Apple Pay buttons
77
-
- Handling 3D-secure
74
+
Now you can use Stripe with Flutter web! Notice right now it is highly experimental and only a subset of features is implemented.
78
75
79
-
Notice that `PaymentSheet`is only available for Android and iOS.
76
+
To use Stripe on web, it is required to add `flutter_stripe_web` in your pubspec file
80
77
81
-
On the other side the `CardField` allows you to create a more customizable payment flow inside your app.
Payment sheet | Easy | Our recommended way of handling payments. It offers localization, animations and error handling out of the box. | [docs](https://docs.page/flutter-stripe/flutter_stripe/sheet) |
87
+
Cardfield | Medium | Single line cardfield. Offers more flexibility but has less built-in functionality. | [docs](https://docs.page/flutter-stripe/flutter_stripe/card_field) |
88
+
Card form | Medium | Simular as the cardfield but the entry fields are spread across multi lines | [docs](https://docs.page/flutter-stripe/flutter_stripe/card_field) |
91
89
92
-
// set the publishable key for Stripe - this is mandatory
We also support Financial connections in our latest sdk. Check out the [docs](https://docs.page/flutter-stripe/flutter_stripe/financial_connections) to learn more on how to set it up.
0 commit comments