refilc+ test subscription is completely working with stripe
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
import 'package:flutter_stripe/flutter_stripe.dart' as stripe;
|
||||
import 'package:refilc/api/client.dart';
|
||||
import 'package:refilc/theme/colors/colors.dart';
|
||||
// import 'package:refilc/theme/colors/colors.dart';
|
||||
import 'package:refilc_plus/providers/premium_provider.dart';
|
||||
import 'package:refilc_plus/ui/mobile/premium/activation_view/activation_view.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_feather_icons/flutter_feather_icons.dart';
|
||||
import 'package:flutter_svg/svg.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
import 'package:url_launcher/url_launcher.dart';
|
||||
// import 'package:url_launcher/url_launcher.dart';
|
||||
|
||||
class GithubLoginButton extends StatelessWidget {
|
||||
const GithubLoginButton({super.key});
|
||||
@@ -39,9 +39,9 @@ class GithubLoginButton extends StatelessWidget {
|
||||
// return;
|
||||
// }
|
||||
|
||||
// Navigator.of(context).push(MaterialPageRoute(builder: (context) {
|
||||
// return const PremiumActivationView();
|
||||
// }));
|
||||
Navigator.of(context).push(MaterialPageRoute(builder: (context) {
|
||||
return const PremiumActivationView();
|
||||
}));
|
||||
// bool initFinished = await initPaymentSheet(context);
|
||||
// if (initFinished) {
|
||||
// stripe.PaymentSheetPaymentOption? result =
|
||||
@@ -52,11 +52,11 @@ class GithubLoginButton extends StatelessWidget {
|
||||
// print(result?.label ?? 'nem label');
|
||||
// }
|
||||
|
||||
launchUrl(
|
||||
Uri.parse(
|
||||
'https://api.refilc.hu/v3/payment/stripe-create-checkout?product=asdasd'),
|
||||
mode: LaunchMode.inAppBrowserView,
|
||||
);
|
||||
// launchUrl(
|
||||
// Uri.parse(
|
||||
// 'https://api.refilc.hu/v3/payment/stripe-create-checkout?product=asdasd'),
|
||||
// mode: LaunchMode.inAppBrowserView,
|
||||
// );
|
||||
},
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.symmetric(vertical: 12.0),
|
||||
|
||||
Reference in New Issue
Block a user