Skip to content

Commit

Permalink
fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
cedvandenbosch committed Oct 26, 2024
1 parent aa7ba40 commit 3d10f14
Show file tree
Hide file tree
Showing 6 changed files with 1,122 additions and 1,031 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 3d10f14

Please sign in to comment.