payment success page

This commit is contained in:
efrilm
2025-10-30 17:08:11 +07:00
parent b335102677
commit bf43c398d2
7 changed files with 833 additions and 111 deletions
@@ -9,6 +9,7 @@ import '../../../domain/order/order.dart';
import '../../../injection.dart';
import '../../components/spaces/space.dart';
import '../../components/toast/flushbar.dart';
import '../../router/app_router.gr.dart';
import 'widgets/payment_left_panel.dart';
import 'widgets/payment_right_panel.dart';
@@ -26,7 +27,11 @@ class PaymentPage extends StatelessWidget implements AutoRouteWrapper {
() {},
(either) => either.fold(
(f) => AppFlushbar.showOrderFailureToast(context, f),
(data) {},
(data) {
if (context.mounted) {
context.router.replace(PaymentSuccessRoute(orderId: order.id));
}
},
),
);
},