fix(payment): return actual decrypted config values instead of masking

Admin API is authenticated; frontend handles visual masking via password
inputs + eye toggle. This allows the eye icon to reveal actual values.
This commit is contained in:
erio
2026-04-07 01:03:53 +08:00
parent ed03fbf7ba
commit 6147e4c0ed
2 changed files with 4 additions and 14 deletions
+1 -1
View File
@@ -1 +1 @@
0.1.108.41
0.1.108.42
@@ -295,19 +295,9 @@ func (s *PaymentConfigService) ListProviderInstancesWithConfig(ctx context.Conte
}
func (s *PaymentConfigService) decryptAndMaskConfig(encrypted string) map[string]string {
raw := s.decryptConfig(encrypted)
if raw == nil {
return nil
}
masked := make(map[string]string, len(raw))
for k, v := range raw {
if isSensitiveConfigField(k) && v != "" {
masked[k] = "••••••••"
} else {
masked[k] = v
}
}
return masked
// Return actual decrypted values — admin API is authenticated,
// frontend handles visual masking via password inputs + eye toggle.
return s.decryptConfig(encrypted)
}
// pendingOrderStatuses are order statuses considered "in progress" —