Skip to content

Commit cfde5f6

Browse files
authored
Launch version8 (flutter-stripe#1102)
* chore(release): publish packages - [email protected] * chore(release): publish packages - [email protected] * chore(release): publish packages - [email protected] * chore(release): publish packages - [email protected] * chore(release): publish packages - [email protected] * chore(release): publish packages - [email protected]+1 --------- Co-authored-by: Remon <>
1 parent 0b83ba0 commit cfde5f6

File tree

14 files changed

+64
-24
lines changed

14 files changed

+64
-24
lines changed

docs/platform_pay_migration.mdx

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Platform pay migration guide
33
description: Migration guide to platform pay when upgrading to release >v.8.0
44
---
55

6-
# `isApplePaySupported` and `isGooglePaySupported`
6+
## isApplePaySupported and isGooglePaySupported
77

88
`isApplePaySupported` and `isGooglePaySupported` have both been replaced by `isPlatformPaySupported`.
99

@@ -14,20 +14,20 @@ description: Migration guide to platform pay when upgrading to release >v.8.0
1414
+ isPlatformPaySupported({googlePay: myParams});
1515
```
1616

17-
# `presentApplePay`, `confirmApplePayPayment`, `initGooglePay`, `presentGooglePay`, and `createGooglePayPaymentMethod`
17+
## presentApplePay, confirmApplePayPayment, initGooglePay, presentGooglePay, and createGooglePayPaymentMethod
1818

1919
`presentApplePay`, `confirmApplePayPayment`, `isGooglePaySupported`, `presentGooglePay`, and `createGooglePayPaymentMethod` have been replaced with:
2020

2121
- `confirmPlatformPaySetupIntent` if you use platform pay to confirm setupintent.
2222
- `confirmPlatformPayPayment` if you use platform pay to confirm payment intent
2323
- `createPlatformPayPaymentMethod` if you were use platformpay to create a payment method (this was not possible previously with Apple Pay).
2424

25-
# `updateApplePaySummaryItems`
25+
## updateApplePaySummaryItems
2626

2727
`updateApplePaySummaryItems` has been replaced with `updatePlatformPaySheet`.
2828

2929
`updatePlatformPaySheet` accepts an parameter `applePay`. When using this, you can pass an object containing your `summaryItems`, `shippingMethods`, and `errors` to be displayed in the Apple Pay sheet to your customer.
3030

31-
# `<GooglePayButton />` and `<ApplePayButton />`
31+
## GooglePayButton and ApplePayButton
3232

3333
The `GooglePayButton` and `ApplePayButton` components have been replaced with `PlatformPayButton`.

example/pubspec.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ environment:
1010
dependencies:
1111
flutter:
1212
sdk: flutter
13-
flutter_stripe: ^7.0.0
14-
flutter_stripe_web: ^2.1.1
13+
flutter_stripe: ^8.0.0+1
14+
flutter_stripe_web: ^3.0.0
1515
stripe_checkout: ^1.0.0
1616
pay: ^1.0.10
1717
http: ^0.13.1

packages/stripe/CHANGELOG.md

+11
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
## 8.0.0+1
2+
**Breaking Changes**
3+
- This library now supports the new Stripe platform pay methods. See: [migration guide](https://docs.page/flutter-stripe/flutter_stripe/platform_pay_migration) for more details.
4+
5+
- **Fixes**
6+
- Fix for #955 and #1081, enable automatic webview closing.
7+
- Fix #1083 use correct method channel for dangerouslyupdateCard.
8+
- Several fixes by the Stripe sdk [v.0.21.0](https://github.com/stripe/stripe-react-native/releases/tag/v0.21.0) , [v.0.22.0](https://github.com/stripe/stripe-react-native/releases/tag/v0.22.0) and [v.0.23.0](https://github.com/stripe/stripe-react-native/releases/tag/v0.23.0).
9+
- **FIX**: #1083 use correct method channel for dangerouslyupdateCard (#1094).
10+
- **FEAT**: scroll to keep card field visible (#1061).
11+
112
## 7.0.0
213
**Breaking Changes**
314
- This library now supports iOS 13 and up, due to stripe-ios increasing the deployment target

packages/stripe/lib/src/widgets/card_field.dart

+4-4
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ class _CardFieldState extends State<CardField> {
207207

208208
CardStyle effectiveCardStyle(InputDecoration decoration) {
209209
final fontSize = widget.style?.fontSize?.toInt() ??
210-
Theme.of(context).textTheme.subtitle1?.fontSize?.toInt() ??
210+
Theme.of(context).textTheme.titleMedium?.fontSize?.toInt() ??
211211
kCardFieldDefaultFontSize;
212212

213213
// Flutter fonts need to be loaded in the native framework to work
@@ -311,7 +311,7 @@ class _MethodChannelCardFieldState extends State<_MethodChannelCardField>
311311
CardStyle? _lastStyle;
312312
CardStyle resolveStyle(CardStyle? style) {
313313
final theme = Theme.of(context);
314-
final baseTextStyle = Theme.of(context).textTheme.subtitle1;
314+
final baseTextStyle = Theme.of(context).textTheme.titleMedium;
315315
return CardStyle(
316316
borderWidth: 0,
317317
backgroundColor: Colors.transparent,
@@ -323,8 +323,8 @@ class _MethodChannelCardFieldState extends State<_MethodChannelCardField>
323323
kCardFieldDefaultTextColor,
324324
fontSize: baseTextStyle?.fontSize?.toInt() ?? kCardFieldDefaultFontSize,
325325
// fontFamily: baseTextStyle?.fontFamily ?? kCardFieldDefaultFontFamily,
326-
textErrorColor:
327-
theme.inputDecorationTheme.errorStyle?.color ?? theme.errorColor,
326+
textErrorColor: theme.inputDecorationTheme.errorStyle?.color ??
327+
theme.colorScheme.error,
328328
placeholderColor:
329329
theme.inputDecorationTheme.hintStyle?.color ?? theme.hintColor,
330330
).apply(style);

packages/stripe/pubspec.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: flutter_stripe
22
description: Flutter library for Stripe. Supports PaymentSheets, Apple & Google Pay, SCA, PSD2 and much more.
3-
version: 7.0.0
3+
version: 8.0.0+1
44
homepage: https://github.com/flutter-stripe/flutter_stripe
55
repository: https://github.com/flutter-stripe/flutter_stripe
66

@@ -21,9 +21,9 @@ flutter:
2121
dependencies:
2222
flutter:
2323
sdk: flutter
24-
stripe_android: ^7.0.1
25-
stripe_ios: ^7.0.0
26-
stripe_platform_interface: ^7.0.0
24+
stripe_android: ^8.0.0
25+
stripe_ios: ^8.0.0
26+
stripe_platform_interface: ^8.0.0
2727
dev_dependencies:
2828
flutter_test:
2929
sdk: flutter

packages/stripe_android/CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
## 8.0.0
2+
**Breaking Changes**
3+
- This library now supports the new Stripe platform pay methods. See: [migration guide](https://docs.page/flutter-stripe/flutter_stripe/platform_pay_migration) for more details.
4+
5+
- **Fixes**
6+
- Fix #1083 use correct method channel for dangerouslyupdateCard.
7+
- Several fixes by the Stripe sdk [v.0.21.0](https://github.com/stripe/stripe-react-native/releases/tag/v0.21.0) , [v.0.22.0](https://github.com/stripe/stripe-react-native/releases/tag/v0.22.0) and [v.0.23.0](https://github.com/stripe/stripe-react-native/releases/tag/v0.23.0).
8+
19
## 7.0.1
210

311
- Fix #1022 make library compatible with Kotlin 1.7

packages/stripe_android/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: stripe_android
22
description: Stripe platform implementation for Android
3-
version: 7.0.1
3+
version: 8.0.0
44
repository: https://github.com/flutter-stripe/flutter_stripe
55
homepage: https://pub.dev/packages/flutter_stripe
66

packages/stripe_ios/CHANGELOG.md

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
## 8.0.0
2+
**Breaking Changes**
3+
- This library now supports the new Stripe platform pay methods. See: [migration guide](https://docs.page/flutter-stripe/flutter_stripe/platform_pay_migration) for more details.
4+
5+
- **Fixes**
6+
- Fix for #955 and #1081, enable automatic webview closing.
7+
- Fix #1083 use correct method channel for dangerouslyupdateCard.
8+
- Several fixes by the Stripe sdk [v.0.21.0](https://github.com/stripe/stripe-react-native/releases/tag/v0.21.0) , [v.0.22.0](https://github.com/stripe/stripe-react-native/releases/tag/v0.22.0) and [v.0.23.0](https://github.com/stripe/stripe-react-native/releases/tag/v0.23.0).
9+
110
## 7.0.0
211
**Breaking Changes**
312
- This library now supports iOS 13 and up, due to stripe-ios increasing the deployment target

packages/stripe_ios/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: stripe_ios
22
description: Stripe platform implementation for iOS
3-
version: 7.0.0
3+
version: 8.0.0
44
repository: https://github.com/flutter-stripe/flutter_stripe
55
homepage: https://pub.dev/packages/flutter_stripe
66

packages/stripe_platform_interface/CHANGELOG.md

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
## 8.0.0
2+
**Breaking Changes**
3+
- This library now supports the new Stripe platform pay methods. See: [migration guide](https://docs.page/flutter-stripe/flutter_stripe/platform_pay_migration) for more details.
4+
5+
- **Fixes**
6+
- Fix for #955 and #1081, enable automatic webview closing.
7+
- Fix #1083 use correct method channel for dangerouslyupdateCard.
8+
- Several fixes by the Stripe sdk [v.0.21.0](https://github.com/stripe/stripe-react-native/releases/tag/v0.21.0) , [v.0.22.0](https://github.com/stripe/stripe-react-native/releases/tag/v0.22.0) and [v.0.23.0](https://github.com/stripe/stripe-react-native/releases/tag/v0.23.0).
9+
110
## 7.0.0
211
**Breaking Changes**
312
- This library now supports iOS 13 and up, due to stripe-ios increasing the deployment target

packages/stripe_platform_interface/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: stripe_platform_interface
22
description: Platform interface for stripe sdk
3-
version: 7.0.0
3+
version: 8.0.0
44
repository: https://github.com/flutter-stripe/flutter_stripe
55
homepage: https://pub.dev/packages/flutter_stripe
66

packages/stripe_web/CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 3.0.0
2+
- Comply to breaking changes in platform interface. No changes further.
3+
14
## 2.1.1
25

36
- Bump "flutter_stripe_web" to `2.1.1`.
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
library stripe_web;
22

3-
export 'src/widgets/payment_element.dart' hide PaymentElementState;
4-
export 'src/widgets/card_field.dart' hide WebStripeCardState;
3+
export 'package:stripe_js/stripe_api.dart' show ConfirmPaymentParams;
54
export 'package:stripe_platform_interface/stripe_platform_interface.dart';
6-
export 'src/widgets/card_field.dart' hide WebStripeCardState;
5+
6+
export 'src/models/models.dart';
77
export 'src/web_stripe.dart';
8+
export 'src/widgets/card_field.dart' hide WebStripeCardState;
9+
export 'src/widgets/payment_element.dart' hide PaymentElementState;
810
export 'src/widgets/payment_element.dart';
9-
export 'src/models/models.dart';
10-
export 'package:stripe_js/stripe_api.dart' show ConfirmPaymentParams;

packages/stripe_web/pubspec.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: flutter_stripe_web
22
description: Stripe sdk bindings for the Flutter web platform. This package contains the implementation of the platform interface for web.
3-
version: 2.1.1
3+
version: 3.0.0
44
homepage: https://github.com/flutter-stripe/flutter_stripe
55

66
environment:
@@ -13,7 +13,7 @@ dependencies:
1313
flutter_web_plugins:
1414
sdk: flutter
1515
freezed_annotation: ^2.0.3
16-
stripe_platform_interface: ^7.0.0
16+
stripe_platform_interface: ^8.0.0
1717
js: ^0.6.3
1818
stripe_js: ^2.0.1
1919

0 commit comments

Comments
 (0)