Skip to content

Commit

Permalink
remove checkout from example app since this is not part of this libra…
Browse files Browse the repository at this point in the history
…ry but relies on backend implementation
  • Loading branch information
Remon committed Jul 17, 2024
1 parent 749a4d2 commit a17417d
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 104 deletions.
81 changes: 0 additions & 81 deletions example/lib/screens/checkout/checkout_screen.dart

This file was deleted.

8 changes: 0 additions & 8 deletions example/lib/screens/checkout/platforms/stripe_checkout.dart

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'package:flutter/widgets.dart';
import 'package:flutter_stripe_web/flutter_stripe_web.dart';

import '../../../checkout/platforms/stripe_checkout_web.dart';
import 'stripe_checkout_web.dart';

Future<void> pay() async {
await WebStripe.instance.confirmPaymentElement(
Expand Down
10 changes: 0 additions & 10 deletions example/lib/screens/screens.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import 'package:flutter/material.dart';
import 'package:stripe_example/screens/checkout/checkout_screen.dart';
import 'package:stripe_example/screens/customer_sheet/customer_sheet_screen.dart';
import 'package:stripe_example/screens/payment_sheet/payment_element/payment_element.dart';
import 'package:stripe_example/screens/payment_sheet/payment_sheet_deffered_screen.dart';
Expand Down Expand Up @@ -370,14 +369,5 @@ class Example extends StatelessWidget {
],
),
]),
Example(
title: 'Checkout',
builder: (c) => CheckoutScreenExample(),
platformsSupported: [
DevicePlatform.android,
DevicePlatform.ios,
DevicePlatform.web
],
),
];
}
1 change: 0 additions & 1 deletion example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ dependencies:
sdk: flutter
flutter_stripe: ^10.2.0
flutter_stripe_web: ^5.1.0
stripe_checkout: ^1.0.1
pay: ^1.1.0
http: ^1.1.0
font_awesome_flutter: ^10.6.0
Expand Down
4 changes: 1 addition & 3 deletions example/pubspec_overrides.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# melos_managed_dependency_overrides: flutter_stripe,stripe_platform_interface,stripe_android,stripe_ios,stripe_checkout,flutter_stripe_web,stripe_js
# melos_managed_dependency_overrides: flutter_stripe,stripe_platform_interface,stripe_android,stripe_ios,flutter_stripe_web,stripe_js
dependency_overrides:
flutter_stripe:
path: ../packages/stripe
Expand All @@ -8,8 +8,6 @@ dependency_overrides:
path: ../packages/stripe_android
stripe_ios:
path: ../packages/stripe_ios
stripe_checkout:
path: ../packages/stripe_checkout
flutter_stripe_web:
path: ../packages/stripe_web
stripe_js:
Expand Down

0 comments on commit a17417d

Please sign in to comment.