Skip to content

Commit

Permalink
Smallfixes (#1280)
Browse files Browse the repository at this point in the history
* FIX: #1246 do not crash on empty params class

* FIX: #1279 add supported methods for the web in the readme file

---------

Co-authored-by: Remon <>
  • Loading branch information
remonh87 authored Jun 17, 2023
1 parent 15866eb commit 838e5a0
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,15 @@ You will also need to update in your Podfile:

`platform :ios, '13.0'`


#### Web (Experimental)

Now you can use Stripe with Flutter web! Notice right now it is highly experimental and only a subset of features is implemented.
Now you can use Stripe with Flutter web! Notice right now it is highly experimental and only a subset of features is implemented. Namely:

- Create paymentmethod
- Confirm payment intent
- Confirm setup intent
- Create token
- Confirm payment element (recommended way of handling payments on web)

To use Stripe on web, it is required to add `flutter_stripe_web` in your pubspec file

Expand Down
9 changes: 7 additions & 2 deletions packages/stripe/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,15 @@ You will also need to update in your Podfile:

`platform :ios, '13.0'`


#### Web (Experimental)

Now you can use Stripe with Flutter web! Notice right now it is highly experimental and only a subset of features is implemented.
Now you can use Stripe with Flutter web! Notice right now it is highly experimental and only a subset of features is implemented. Namely:

- Create paymentmethod
- Confirm payment intent
- Confirm setup intent
- Create token
- Confirm payment element (recommended way of handling payments on web)

To use Stripe on web, it is required to add `flutter_stripe_web` in your pubspec file

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ class MethodChannelStripe extends StripePlatform {
final result = await _methodChannel
.invokeMapMethod<String, dynamic>('confirmPayment', {
'paymentIntentClientSecret': paymentIntentClientSecret,
'params': params?.toJson(),
'params': params?.toJson() ?? {},
'options': options?.toJson() ?? {},
});

Expand Down

0 comments on commit 838e5a0

Please sign in to comment.