diff --git a/core/src/main/java/google/registry/flows/domain/DomainFlowUtils.java b/core/src/main/java/google/registry/flows/domain/DomainFlowUtils.java index 2e4e019cf..aa59d2b11 100644 --- a/core/src/main/java/google/registry/flows/domain/DomainFlowUtils.java +++ b/core/src/main/java/google/registry/flows/domain/DomainFlowUtils.java @@ -682,7 +682,13 @@ public class DomainFlowUtils { builder.setAvailIfSupported(true); fees = pricingLogic - .getCreatePrice(registry, domainNameString, now, years, false, allocationToken) + .getCreatePrice( + registry, + domainNameString, + now, + years, + isAnchorTenant(domainName, allocationToken, Optional.empty()), + allocationToken) .getFees(); } break; diff --git a/core/src/test/java/google/registry/flows/domain/DomainCheckFlowTest.java b/core/src/test/java/google/registry/flows/domain/DomainCheckFlowTest.java index 6d6ad9222..606e22743 100644 --- a/core/src/test/java/google/registry/flows/domain/DomainCheckFlowTest.java +++ b/core/src/test/java/google/registry/flows/domain/DomainCheckFlowTest.java @@ -188,6 +188,25 @@ class DomainCheckFlowTest extends ResourceCheckFlowTestCase + + + + Command completed successfully + + + + + example1.tld + + + example2.example + Alloc token invalid for domain + + + reserved.tld + Alloc token invalid for domain + + + + + + + example2.example + USD + create + 1 + 0.00 + + + example1.tld + USD + create + 1 + 0.00 + + + reserved.tld + USD + create + 1 + reserved + + + + + ABC-12345 + server-trid + + +