Use nicer representation of payment methods in the Greenfield API

This commit is contained in:
nicolas.dorier
2020-08-26 21:24:37 +09:00
parent be21e7d253
commit f2e94e6819
9 changed files with 82 additions and 8 deletions

View File

@@ -267,7 +267,7 @@ namespace BTCPayServer.Controllers.GreenField
Monitoring = entity.MonitoringExpiration - entity.ExpirationTime,
PaymentTolerance = entity.PaymentTolerance,
PaymentMethods =
entity.GetPaymentMethods().Select(method => method.GetId().ToString()).ToArray(),
entity.GetPaymentMethods().Select(method => method.GetId().ToStringNormalized()).ToArray(),
SpeedPolicy = entity.SpeedPolicy
}
};