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: README.md
+26-7
Original file line number
Diff line number
Diff line change
@@ -43,13 +43,19 @@ dart pub add flutter_stripe
43
43
44
44
#### Android
45
45
46
-
- Android 5.0 (API level 21) and above
47
-
- Kotlin version 1.5.0 and above: [example](https://github.com/flutter-stripe/flutter_stripe/blob/79b201a2e9b827196d6a97bb41e1d0e526632a5a/example/android/build.gradle#L2)
48
-
- 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)
49
-
- 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)
50
-
- 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)
51
46
52
-
This is caused by the Stripe SDK requires the use of the AppCompat theme for their UI components and the Support Fragment Manager for the Payment Sheets
47
+
This plugin requires several changes to be able to work on Android devices. Please make sure you follow all these steps:
48
+
49
+
1. Use Android 5.0 (API level 21) and above
50
+
2. Use Kotlin version 1.5.0 and above: [example](https://github.com/flutter-stripe/flutter_stripe/blob/79b201a2e9b827196d6a97bb41e1d0e526632a5a/example/android/build.gradle#L2)
51
+
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)
52
+
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)
53
+
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)
54
+
6. Rebuild the app, as the above changes don't update with hot reload
55
+
56
+
These changes are needed because the Android Stripe SDK requires the use of the AppCompat theme for their UI components and the Support Fragment Manager for the Payment Sheets
57
+
58
+
If you are having troubles to make this package to work on Android, join [this discussion](https://github.com/flutter-stripe/flutter_stripe/discussions/538) to get some support
53
59
54
60
#### iOS
55
61
@@ -61,8 +67,21 @@ Now you can use Stripe with Flutter web! Notice right now it is highly experimen
61
67
62
68
Check the steps needed [here](https://github.com/flutter-stripe/flutter_stripe/tree/main/packages/stripe_web)
63
69
70
+
## Usage
71
+
72
+
The library provides three UI componets for accepting card payments: the `CardField`, `CardForm`, and the `Paymentsheet`.
73
+
74
+
We recommend using the `PaymentSheet` for the most easy and smooth Stripe integration. It provides out of the box support for:
75
+
- Localized labels and error messages to the users
76
+
- Build-in animations
77
+
- Build-in Google Pay and Apple Pay buttons
78
+
- Handling 3D-secure
79
+
80
+
Notice that `PaymentSheet` is only available for Android and iOS.
81
+
82
+
On the other side the `CardField` allows you to create a more customizable payment flow inside your app.
Copy file name to clipboardExpand all lines: packages/stripe/README.md
+17-11
Original file line number
Diff line number
Diff line change
@@ -43,13 +43,18 @@ dart pub add flutter_stripe
43
43
44
44
#### Android
45
45
46
-
- Android 5.0 (API level 21) and above
47
-
- Kotlin version 1.5.0 and above: [example](https://github.com/flutter-stripe/flutter_stripe/blob/79b201a2e9b827196d6a97bb41e1d0e526632a5a/example/android/build.gradle#L2)
48
-
- 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)
49
-
- 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)
50
-
- 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)
46
+
This plugin requires several changes to be able to work on Android devices. Please make sure you follow all these steps:
51
47
52
-
This is caused by the Stripe SDK requires the use of the AppCompat theme for their UI components and the Support Fragment Manager for the Payment Sheets
48
+
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)
51
+
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
+
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
+
6. Rebuild the app, as the above changes don't update with hot reload
54
+
55
+
These changes are needed because the Android Stripe SDK requires the use of the AppCompat theme for their UI components and the Support Fragment Manager for the Payment Sheets
56
+
57
+
If you are having troubles to make this package to work on Android, join [this discussion](https://github.com/flutter-stripe/flutter_stripe/discussions/538) to get some support
53
58
54
59
#### iOS
55
60
@@ -61,18 +66,19 @@ Now you can use Stripe with Flutter web! Notice right now it is highly experimen
61
66
62
67
Check the steps needed [here](https://github.com/flutter-stripe/flutter_stripe/tree/main/packages/stripe_web)
63
68
64
-
65
69
## Usage
66
70
67
-
The library supports 2 ways of payment namely the `CardField`and the `Paymentsheet`. The `CardField` has the most configurable options but it has some issues on Android: https://github.com/flutter/flutter/issues/86480 .
71
+
The library provides three UI componets for accepting card payments: the `CardField`, `CardForm`, and the `Paymentsheet`.
68
72
69
-
Furthermore the `PaymentSheet`has a more easy and out of the box integration:
73
+
We recommend using the `PaymentSheet`for the most easy and smooth Stripe integration. It provides out of the box support for:
70
74
- Localized labels and error messages to the users
71
75
- Build-in animations
72
76
- Build-in Google Pay and Apple Pay buttons
73
-
- Handling 3D-secure
77
+
- Handling 3D-secure
78
+
79
+
Notice that `PaymentSheet` is only available for Android and iOS.
74
80
75
-
We recommend using the `PaymentSheet` for the most easy and smooth Stripe integration.
81
+
On the other side the `CardField` allows you to create a more customizable payment flow inside your app.
0 commit comments