Compare commits

...

2 Commits

Author SHA1 Message Date
6c847ee1e1 👽 Remove order handle in stellar program purchase 2025-09-08 22:50:32 +08:00
18ad4d376e 💄 The payment now no longer auto procced 2025-09-08 22:48:46 +08:00
2 changed files with 2 additions and 9 deletions

View File

@@ -789,11 +789,8 @@ class LevelingScreen extends HookConsumerWidget {
if (context.mounted) showLoadingModal(context);
if (paidOrder != null) {
await client.post(
'/id/subscriptions/order/handle',
data: {'order_id': paidOrder.id},
);
// Wait for server to handle order
await Future.delayed(const Duration(seconds: 1));
ref.invalidate(accountStellarSubscriptionProvider);
ref.read(userInfoProvider.notifier).fetchUser();
if (context.mounted) {

View File

@@ -142,10 +142,6 @@ class _PaymentContentState extends ConsumerState<_PaymentContent> {
// Set initial mode based on stored PIN and biometric support
if (_hasStoredPin && _hasBiometricSupport && widget.enableBiometric) {
_isPinMode = false;
// Automatically trigger biometric authentication
WidgetsBinding.instance.addPostFrameCallback((_) {
_authenticateWithBiometric();
});
} else {
_isPinMode = true;
}