Skip to content

Commit

Permalink
fix example (#1974)
Browse files Browse the repository at this point in the history
Co-authored-by: cedvandenbosch <[email protected]>
Co-authored-by: Rémon <[email protected]>
  • Loading branch information
3 people authored Oct 28, 2024
1 parent 80c0183 commit d73d633
Show file tree
Hide file tree
Showing 5 changed files with 1,121 additions and 1,028 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
import 'package:flutter/widgets.dart';
import 'package:flutter_stripe_web/flutter_stripe_web.dart';
import 'package:stripe_example/screens/payment_sheet/express_checkout/platforms/express_checkout_element_web.dart';

Future<void> pay() async {
await WebStripe.instance.confirmPaymentElement(
ConfirmPaymentElementOptions(
confirmParams: ConfirmPaymentParams(return_url: getReturnUrl()),
),
);
throw UnimplementedError();
}

class ExpressCheckoutWidget extends StatelessWidget {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'dart:html' as html;
import 'package:web/web.dart' as html;

String getUrlPort() => html.window.location.port;

Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: stripe_example
description: Demonstrates how to use the stripe plugin.
version: 1.0.0
publish_to: 'none'
publish_to: "none"

environment:
sdk: ">=3.3.0 <4.0.0"
Expand Down
Loading

0 comments on commit d73d633

Please sign in to comment.