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 (context.mounted) showLoadingModal(context);
if (paidOrder != null) { if (paidOrder != null) {
await client.post( // Wait for server to handle order
'/id/subscriptions/order/handle', await Future.delayed(const Duration(seconds: 1));
data: {'order_id': paidOrder.id},
);
ref.invalidate(accountStellarSubscriptionProvider); ref.invalidate(accountStellarSubscriptionProvider);
ref.read(userInfoProvider.notifier).fetchUser(); ref.read(userInfoProvider.notifier).fetchUser();
if (context.mounted) { if (context.mounted) {

View File

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