-
-
Notifications
You must be signed in to change notification settings - Fork 601
Add deferred payment methods for web #1881
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 42 commits
07af94b
265bc9a
787fe3f
75eb561
444e7fc
dfd9eff
cfa369e
0a9fc5e
da0e10c
d2a5ec7
bfcc58c
8457ab5
2f4a9b2
674ef1e
4fc31dd
8037745
da70e73
d55b5b2
e8fdc96
4cef409
95b0dc1
df5d2f0
8514e41
7129309
e8de3e7
272c61a
37e7f81
a5501b4
3457442
41cc5dd
65e7aa5
999e320
2ac8be2
232af88
8b85bde
05367ef
ea03ab0
0990bf1
0221611
4afe17a
62cd8a3
f483011
d939152
85eca7c
f2c0ae7
b8fef25
896c2c6
7f348bc
c96ce65
a959ad4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
name: flutter_stripe | ||
description: Flutter library for Stripe. Supports PaymentSheets, Apple & Google Pay, SCA, PSD2 and much more. | ||
version: 11.5.1 | ||
version: 11.6.0 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let’s not bump the version we will do this when we release |
||
homepage: https://github.com/flutter-stripe/flutter_stripe | ||
repository: https://github.com/flutter-stripe/flutter_stripe | ||
|
||
|
@@ -24,7 +24,7 @@ dependencies: | |
meta: ^1.8.0 | ||
stripe_android: ^11.5.0 | ||
stripe_ios: ^11.5.0 | ||
stripe_platform_interface: ^11.5.1 | ||
stripe_platform_interface: ^11.6.0 | ||
dev_dependencies: | ||
flutter_test: | ||
sdk: flutter | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
## 6.4.1 | ||
**Features** | ||
- add method for deferred payment | ||
|
||
## 6.4.0 | ||
- Use latest platform interface | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
import 'package:freezed_annotation/freezed_annotation.dart'; | ||
import 'package:stripe_js/src/api/converters/js_converter.dart'; | ||
import 'package:stripe_js/stripe_api.dart'; | ||
|
||
import 'package:freezed_annotation/freezed_annotation.dart'; | ||
|
||
part 'confirm_payment_options.freezed.dart'; | ||
part 'confirm_payment_options.g.dart'; | ||
|
||
|
@@ -11,6 +10,7 @@ class ConfirmPaymentOptions with _$ConfirmPaymentOptions { | |
const factory ConfirmPaymentOptions({ | ||
/// The Elements instance that was used to create the Payment Element. | ||
@ElementsConverter() required Elements elements, | ||
String? clientSecret, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. good catch! Nit: let's add a doc here The PaymentIntent's client secret. |
||
|
||
/// Parameters that will be passed on to the Stripe API. | ||
/// Refer to the Payment Intents API for a full list of parameters. | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import 'package:freezed_annotation/freezed_annotation.dart'; | ||
import 'package:stripe_js/src/api/converters/js_converter.dart'; | ||
import 'package:stripe_js/src/api/elements/elements.dart'; | ||
|
||
part 'create_payment_method_with_elements_data.freezed.dart'; | ||
part 'create_payment_method_with_elements_data.g.dart'; | ||
|
||
@freezed | ||
class CreatePaymentMethodWithElementsData | ||
with _$CreatePaymentMethodWithElementsData { | ||
const factory CreatePaymentMethodWithElementsData({ | ||
@ElementsConverter() required Elements elements, | ||
}) = _CreatePaymentMethodWithElementsData; | ||
|
||
factory CreatePaymentMethodWithElementsData.fromJson( | ||
Map<String, dynamic> json) => | ||
_$CreatePaymentMethodWithElementsDataFromJson(json); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We will define the version (I think we want to add some more) to this can be removed