diff --git a/java/google/registry/braintree/BUILD b/java/google/registry/braintree/BUILD
deleted file mode 100644
index 116cefbb3..000000000
--- a/java/google/registry/braintree/BUILD
+++ /dev/null
@@ -1,20 +0,0 @@
-package(
- default_visibility = ["//visibility:public"],
-)
-
-licenses(["notice"]) # Apache 2.0
-
-java_library(
- name = "braintree",
- srcs = glob(["*.java"]),
- deps = [
- "//java/google/registry/config",
- "//java/google/registry/keyring/api",
- "//java/google/registry/model",
- "@com_braintreepayments_gateway_braintree_java",
- "@com_google_code_findbugs_jsr305",
- "@com_google_dagger",
- "@com_google_guava",
- "@javax_inject",
- ],
-)
diff --git a/java/google/registry/braintree/BraintreeModule.java b/java/google/registry/braintree/BraintreeModule.java
deleted file mode 100644
index ba9c7072d..000000000
--- a/java/google/registry/braintree/BraintreeModule.java
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright 2017 The Nomulus Authors. All Rights Reserved.
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-package google.registry.braintree;
-
-import com.braintreegateway.BraintreeGateway;
-import dagger.Module;
-import dagger.Provides;
-import google.registry.config.RegistryConfig.Config;
-import google.registry.config.RegistryEnvironment;
-import google.registry.keyring.api.KeyModule.Key;
-import javax.inject.Singleton;
-
-/** Dagger module for Braintree Payments API. */
-@Module
-public final class BraintreeModule {
-
- @Provides
- @Singleton
- static BraintreeGateway provideBraintreeGateway(
- RegistryEnvironment environment,
- @Config("braintreeMerchantId") String merchantId,
- @Config("braintreePublicKey") String publicKey,
- @Key("braintreePrivateKey") String privateKey) {
- return new BraintreeGateway(
- environment == RegistryEnvironment.PRODUCTION
- ? com.braintreegateway.Environment.PRODUCTION
- : com.braintreegateway.Environment.SANDBOX,
- merchantId,
- publicKey,
- privateKey);
- }
-}
diff --git a/java/google/registry/braintree/BraintreeRegistrarSyncer.java b/java/google/registry/braintree/BraintreeRegistrarSyncer.java
deleted file mode 100644
index 1bac45154..000000000
--- a/java/google/registry/braintree/BraintreeRegistrarSyncer.java
+++ /dev/null
@@ -1,103 +0,0 @@
-// Copyright 2017 The Nomulus Authors. All Rights Reserved.
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-package google.registry.braintree;
-
-import static com.google.common.base.Preconditions.checkArgument;
-import static com.google.common.base.Verify.verify;
-
-import com.braintreegateway.BraintreeGateway;
-import com.braintreegateway.Customer;
-import com.braintreegateway.CustomerRequest;
-import com.braintreegateway.Result;
-import com.braintreegateway.exceptions.NotFoundException;
-import com.google.common.base.VerifyException;
-import google.registry.model.registrar.Registrar;
-import google.registry.model.registrar.RegistrarContact;
-import java.util.Optional;
-import javax.inject.Inject;
-
-/** Helper for creating Braintree customer entries for registrars. */
-public class BraintreeRegistrarSyncer {
-
- private final BraintreeGateway braintree;
-
- @Inject
- BraintreeRegistrarSyncer(BraintreeGateway braintreeGateway) {
- this.braintree = braintreeGateway;
- }
-
- /**
- * Syncs {@code registrar} with Braintree customer entry, creating it if one doesn't exist.
- *
- *
The customer ID will be the same as {@link Registrar#getClientId()}.
- *
- *
Creating a customer object in Braintree's database is a necessary step in order to associate
- * a payment with a registrar. The transaction will fail if the customer object doesn't exist.
- *
- * @throws IllegalArgumentException if {@code registrar} is not using BRAINTREE billing
- * @throws VerifyException if the Braintree API returned a failure response
- */
- public void sync(Registrar registrar) {
- String id = registrar.getClientId();
- checkArgument(registrar.getBillingMethod() == Registrar.BillingMethod.BRAINTREE,
- "Registrar (%s) billing method (%s) is not BRAINTREE", id, registrar.getBillingMethod());
- CustomerRequest request = createRequest(registrar);
- Result result;
- if (doesCustomerExist(id)) {
- result = braintree.customer().update(id, request);
- } else {
- result = braintree.customer().create(request);
- }
- verify(result.isSuccess(),
- "Failed to sync registrar (%s) to braintree customer: %s", id, result.getMessage());
- }
-
- private CustomerRequest createRequest(Registrar registrar) {
- CustomerRequest result =
- new CustomerRequest()
- .id(registrar.getClientId())
- .customerId(registrar.getClientId())
- .company(registrar.getRegistrarName());
- Optional contact = getBillingContact(registrar);
- if (contact.isPresent()) {
- result.email(contact.get().getEmailAddress());
- result.phone(contact.get().getPhoneNumber());
- result.fax(contact.get().getFaxNumber());
- } else {
- result.email(registrar.getEmailAddress());
- result.phone(registrar.getPhoneNumber());
- result.fax(registrar.getFaxNumber());
- }
- return result;
- }
-
- private Optional getBillingContact(Registrar registrar) {
- for (RegistrarContact contact : registrar.getContacts()) {
- if (contact.getTypes().contains(RegistrarContact.Type.BILLING)) {
- return Optional.of(contact);
- }
- }
- return Optional.empty();
- }
-
- private boolean doesCustomerExist(String id) {
- try {
- braintree.customer().find(id);
- return true;
- } catch (NotFoundException e) {
- return false;
- }
- }
-}
diff --git a/java/google/registry/braintree/package-info.java b/java/google/registry/braintree/package-info.java
deleted file mode 100644
index 280aa3852..000000000
--- a/java/google/registry/braintree/package-info.java
+++ /dev/null
@@ -1,17 +0,0 @@
-// Copyright 2017 The Nomulus Authors. All Rights Reserved.
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-/** Braintree payment gateway utilities. */
-@javax.annotation.ParametersAreNonnullByDefault
-package google.registry.braintree;
diff --git a/java/google/registry/config/RegistryConfig.java b/java/google/registry/config/RegistryConfig.java
index 4519ca242..4abe9afc0 100644
--- a/java/google/registry/config/RegistryConfig.java
+++ b/java/google/registry/config/RegistryConfig.java
@@ -32,14 +32,11 @@ import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.net.URI;
import java.net.URL;
-import java.util.Map;
-import java.util.Map.Entry;
import java.util.Optional;
import javax.annotation.Nullable;
import javax.inject.Named;
import javax.inject.Qualifier;
import javax.inject.Singleton;
-import org.joda.money.CurrencyUnit;
import org.joda.time.DateTimeConstants;
import org.joda.time.Duration;
@@ -887,51 +884,6 @@ public final class RegistryConfig {
return null;
}
- /**
- * Returns Braintree Merchant Account IDs for each supported currency.
- *
- * @see google.registry.ui.server.registrar.RegistrarPaymentAction
- * @see google.registry.ui.server.registrar.RegistrarPaymentSetupAction
- */
- @Provides
- @Config("braintreeMerchantAccountIds")
- public static ImmutableMap provideBraintreeMerchantAccountId(
- RegistryConfigSettings config) {
- Map merchantAccountIds = config.braintree.merchantAccountIdsMap;
- ImmutableMap.Builder builder = new ImmutableMap.Builder<>();
- for (Entry entry : merchantAccountIds.entrySet()) {
- builder.put(CurrencyUnit.of(entry.getKey()), entry.getValue());
- }
- return builder.build();
- }
-
- /**
- * Returns Braintree Merchant ID of Registry, used for accessing Braintree API.
- *
- *
This is a base32 value copied from the Braintree website.
- *
- * @see google.registry.braintree.BraintreeModule
- */
- @Provides
- @Config("braintreeMerchantId")
- public static String provideBraintreeMerchantId(RegistryConfigSettings config) {
- return config.braintree.merchantId;
- }
-
- /**
- * Returns Braintree Public Key of Registry, used for accessing Braintree API.
- *
- *
This is a base32 value copied from the Braintree website.
- *
- * @see google.registry.braintree.BraintreeModule
- * @see google.registry.keyring.api.Keyring#getBraintreePrivateKey()
- */
- @Provides
- @Config("braintreePublicKey")
- public static String provideBraintreePublicKey(RegistryConfigSettings config) {
- return config.braintree.publicKey;
- }
-
/**
* Disclaimer displayed at the end of WHOIS query results.
*
diff --git a/java/google/registry/config/RegistryConfigSettings.java b/java/google/registry/config/RegistryConfigSettings.java
index 3245bd18a..3a7d0dfaa 100644
--- a/java/google/registry/config/RegistryConfigSettings.java
+++ b/java/google/registry/config/RegistryConfigSettings.java
@@ -15,7 +15,6 @@
package google.registry.config;
import java.util.List;
-import java.util.Map;
/** The POJO that YAML config files are deserialized into. */
public class RegistryConfigSettings {
@@ -33,7 +32,6 @@ public class RegistryConfigSettings {
public RegistrarConsole registrarConsole;
public Monitoring monitoring;
public Misc misc;
- public Braintree braintree;
public Kms kms;
public RegistryTool registryTool;
@@ -158,13 +156,6 @@ public class RegistryConfigSettings {
public int asyncDeleteDelaySeconds;
}
- /** Configuration for Braintree credit card payment processing. */
- public static class Braintree {
- public String merchantId;
- public String publicKey;
- public Map merchantAccountIdsMap;
- }
-
/** Configuration options for the registry tool. */
public static class RegistryTool {
public String clientSecretFilename;
diff --git a/java/google/registry/config/files/default-config.yaml b/java/google/registry/config/files/default-config.yaml
index ac8bbb00d..001d3ce95 100644
--- a/java/google/registry/config/files/default-config.yaml
+++ b/java/google/registry/config/files/default-config.yaml
@@ -246,21 +246,6 @@ misc:
# hosts from being used on domains.
asyncDeleteDelaySeconds: 90
-# Braintree is a credit card payment processor that is used on the registrar
-# console to allow registrars to pay their invoices.
-braintree:
- # Merchant ID of the Braintree account.
- merchantId: example
-
- # Public key used for accessing Braintree API (this is found on their site).
- publicKey: example
-
- # A map of JODA Money CurrencyUnits, specified in three letter ISO-4217
- # format, to Braintree account IDs (each account is limited to a single
- # currency). For example, one entry might be:
- # USD: accountIdUsingUSD
- merchantAccountIdsMap: {}
-
kms:
# GCP project containing the KMS keyring. Should only be used for KMS in
# order to keep a simple locked down IAM configuration.
diff --git a/java/google/registry/config/files/nomulus-config-production-sample.yaml b/java/google/registry/config/files/nomulus-config-production-sample.yaml
index 57c0863df..cb4d4c32b 100644
--- a/java/google/registry/config/files/nomulus-config-production-sample.yaml
+++ b/java/google/registry/config/files/nomulus-config-production-sample.yaml
@@ -57,15 +57,5 @@ registrarConsole:
misc:
sheetExportId: placeholder
-# You only need to specify this section if using Braintree.
-braintree:
- merchantId: placeholder
- publicKey: placeholder
- # Only include currencies that you use.
- merchantAccountIdsMap:
- EUR: placeholder
- JPY: placeholder
- USD: placeholder
-
kms:
projectId: placeholder
diff --git a/java/google/registry/config/files/nomulus-config-unittest.yaml b/java/google/registry/config/files/nomulus-config-unittest.yaml
index 1a1e07305..cd3078a5e 100644
--- a/java/google/registry/config/files/nomulus-config-unittest.yaml
+++ b/java/google/registry/config/files/nomulus-config-unittest.yaml
@@ -19,8 +19,3 @@ caching:
staticPremiumListMaxCachedEntries: 50
eppResourceCachingEnabled: true
eppResourceCachingSeconds: 0
-
-braintree:
- merchantAccountIdsMap:
- USD: accountIdUsd
- JPY: accountIdJpy
diff --git a/java/google/registry/env/common/default/WEB-INF/web.xml b/java/google/registry/env/common/default/WEB-INF/web.xml
index fb123396e..ad42c0f06 100644
--- a/java/google/registry/env/common/default/WEB-INF/web.xml
+++ b/java/google/registry/env/common/default/WEB-INF/web.xml
@@ -31,18 +31,6 @@
/registrar
-
-
- frontend-servlet
- /registrar-payment-setup
-
-
-
-
- frontend-servlet
- /registrar-payment
-
-
frontend-servlet
@@ -73,7 +61,6 @@
/assets/js/registrar_bin.js.map/assets/js/registrar_dbg.js
- /assets/js/brain_bin.js.map/assets/css/registrar_dbg.css
diff --git a/java/google/registry/env/common/pubapi/WEB-INF/web.xml b/java/google/registry/env/common/pubapi/WEB-INF/web.xml
index ca266e06e..2cd19223d 100644
--- a/java/google/registry/env/common/pubapi/WEB-INF/web.xml
+++ b/java/google/registry/env/common/pubapi/WEB-INF/web.xml
@@ -61,7 +61,6 @@
/assets/js/registrar_bin.js.map/assets/js/registrar_dbg.js
- /assets/js/brain_bin.js.map/assets/css/registrar_dbg.css
diff --git a/java/google/registry/keyring/api/DummyKeyringModule.java b/java/google/registry/keyring/api/DummyKeyringModule.java
index e0a99682e..15d17d2b6 100644
--- a/java/google/registry/keyring/api/DummyKeyringModule.java
+++ b/java/google/registry/keyring/api/DummyKeyringModule.java
@@ -109,7 +109,6 @@ public final class DummyKeyringModule {
"not a real login",
"not a real password",
"not a real login",
- "not a real credential",
- "not a real key");
+ "not a real credential");
}
}
diff --git a/java/google/registry/keyring/api/InMemoryKeyring.java b/java/google/registry/keyring/api/InMemoryKeyring.java
index 85080eff8..516d164cb 100644
--- a/java/google/registry/keyring/api/InMemoryKeyring.java
+++ b/java/google/registry/keyring/api/InMemoryKeyring.java
@@ -38,7 +38,6 @@ public final class InMemoryKeyring implements Keyring {
private final String marksdbLordnPassword;
private final String marksdbSmdrlLogin;
private final String jsonCredential;
- private final String braintreePrivateKey;
public InMemoryKeyring(
PGPKeyPair rdeStagingKey,
@@ -52,8 +51,7 @@ public final class InMemoryKeyring implements Keyring {
String marksdbDnlLogin,
String marksdbLordnPassword,
String marksdbSmdrlLogin,
- String jsonCredential,
- String braintreePrivateKey) {
+ String jsonCredential) {
checkArgument(PgpHelper.isSigningKey(rdeSigningKey.getPublicKey()),
"RDE signing key must support signing: %s", rdeSigningKey.getKeyID());
checkArgument(rdeStagingKey.getPublicKey().isEncryptionKey(),
@@ -76,7 +74,6 @@ public final class InMemoryKeyring implements Keyring {
this.marksdbLordnPassword = checkNotNull(marksdbLordnPassword, "marksdbLordnPassword");
this.marksdbSmdrlLogin = checkNotNull(marksdbSmdrlLogin, "marksdbSmdrlLogin");
this.jsonCredential = checkNotNull(jsonCredential, "jsonCredential");
- this.braintreePrivateKey = checkNotNull(braintreePrivateKey, "braintreePrivateKey");
}
@Override
@@ -144,11 +141,6 @@ public final class InMemoryKeyring implements Keyring {
return jsonCredential;
}
- @Override
- public String getBraintreePrivateKey() {
- return braintreePrivateKey;
- }
-
/** Does nothing. */
@Override
public void close() {}
diff --git a/java/google/registry/keyring/api/KeyModule.java b/java/google/registry/keyring/api/KeyModule.java
index 99c9b6409..d0b72a352 100644
--- a/java/google/registry/keyring/api/KeyModule.java
+++ b/java/google/registry/keyring/api/KeyModule.java
@@ -120,10 +120,4 @@ public final class KeyModule {
static String provideJsonCredential(Keyring keyring) {
return keyring.getJsonCredential();
}
-
- @Provides
- @Key("braintreePrivateKey")
- static String provideBraintreePrivateKey(Keyring keyring) {
- return keyring.getBraintreePrivateKey();
- }
}
diff --git a/java/google/registry/keyring/api/Keyring.java b/java/google/registry/keyring/api/Keyring.java
index 3954053e8..8841963c1 100644
--- a/java/google/registry/keyring/api/Keyring.java
+++ b/java/google/registry/keyring/api/Keyring.java
@@ -149,15 +149,6 @@ public interface Keyring extends AutoCloseable {
*/
String getJsonCredential();
- /**
- * Returns Braintree API private key for Registry.
- *
- *
This is a base32 value copied from the Braintree website.
- *
- * @see google.registry.config.RegistryConfig.ConfigModule#provideBraintreePublicKey
- */
- String getBraintreePrivateKey();
-
// Don't throw so try-with-resources works better.
@Override
void close();
diff --git a/java/google/registry/keyring/kms/KmsKeyring.java b/java/google/registry/keyring/kms/KmsKeyring.java
index d4e4a9e89..f18241447 100644
--- a/java/google/registry/keyring/kms/KmsKeyring.java
+++ b/java/google/registry/keyring/kms/KmsKeyring.java
@@ -64,7 +64,6 @@ public class KmsKeyring implements Keyring {
}
enum StringKeyLabel {
- BRAINTREE_PRIVATE_KEY_STRING,
ICANN_REPORTING_PASSWORD_STRING,
JSON_CREDENTIAL_STRING,
MARKSDB_DNL_LOGIN_STRING,
@@ -150,11 +149,6 @@ public class KmsKeyring implements Keyring {
return getString(StringKeyLabel.JSON_CREDENTIAL_STRING);
}
- @Override
- public String getBraintreePrivateKey() {
- return getString(StringKeyLabel.BRAINTREE_PRIVATE_KEY_STRING);
- }
-
/** No persistent resources are maintained for this Keyring implementation. */
@Override
public void close() {}
diff --git a/java/google/registry/keyring/kms/KmsUpdater.java b/java/google/registry/keyring/kms/KmsUpdater.java
index 6a0bc6930..1a40ddbd7 100644
--- a/java/google/registry/keyring/kms/KmsUpdater.java
+++ b/java/google/registry/keyring/kms/KmsUpdater.java
@@ -24,7 +24,6 @@ import static google.registry.keyring.kms.KmsKeyring.PublicKeyLabel.BRDA_SIGNING
import static google.registry.keyring.kms.KmsKeyring.PublicKeyLabel.RDE_RECEIVER_PUBLIC;
import static google.registry.keyring.kms.KmsKeyring.PublicKeyLabel.RDE_SIGNING_PUBLIC;
import static google.registry.keyring.kms.KmsKeyring.PublicKeyLabel.RDE_STAGING_PUBLIC;
-import static google.registry.keyring.kms.KmsKeyring.StringKeyLabel.BRAINTREE_PRIVATE_KEY_STRING;
import static google.registry.keyring.kms.KmsKeyring.StringKeyLabel.ICANN_REPORTING_PASSWORD_STRING;
import static google.registry.keyring.kms.KmsKeyring.StringKeyLabel.JSON_CREDENTIAL_STRING;
import static google.registry.keyring.kms.KmsKeyring.StringKeyLabel.MARKSDB_DNL_LOGIN_STRING;
@@ -116,10 +115,6 @@ public final class KmsUpdater {
return setString(credential, JSON_CREDENTIAL_STRING);
}
- public KmsUpdater setBraintreePrivateKey(String braintreePrivateKey) {
- return setString(braintreePrivateKey, BRAINTREE_PRIVATE_KEY_STRING);
- }
-
/**
* Generates new encryption keys in KMS, encrypts the updated secrets with them, and persists the
* encrypted secrets to Datastore.
diff --git a/java/google/registry/model/registrar/Registrar.java b/java/google/registry/model/registrar/Registrar.java
index d02e77c95..e45327456 100644
--- a/java/google/registry/model/registrar/Registrar.java
+++ b/java/google/registry/model/registrar/Registrar.java
@@ -158,16 +158,6 @@ public class Registrar extends ImmutableObject implements Buildable, Jsonifiable
SUSPENDED;
}
- /** Method for acquiring money from a registrar customer. */
- public enum BillingMethod {
-
- /** Billing method where billing invoice data is exported to an external accounting system. */
- EXTERNAL,
-
- /** Billing method where we accept Braintree credit card payments in the Registrar Console. */
- BRAINTREE;
- }
-
/** Regex for E.164 phone number format specified by {@code contact.xsd}. */
private static final Pattern E164_PATTERN = Pattern.compile("\\+[0-9]{1,3}\\.[0-9]{1,14}");
@@ -398,16 +388,6 @@ public class Registrar extends ImmutableObject implements Buildable, Jsonifiable
*/
boolean contactsRequireSyncing = true;
- /**
- * Method for receiving money from a registrar customer.
- *
- *
Each registrar may opt-in to their preferred billing method. This value can be changed at
- * any time using the {@code update_registrar} command.
- *
- *
Note: This value should not be changed if the balance is non-zero.
- */
- BillingMethod billingMethod;
-
/** Whether the registrar must acknowledge the price to register non-standard-priced domains. */
boolean premiumPriceAckRequired;
@@ -555,10 +535,6 @@ public class Registrar extends ImmutableObject implements Buildable, Jsonifiable
return driveFolderId;
}
- public BillingMethod getBillingMethod() {
- return firstNonNull(billingMethod, BillingMethod.EXTERNAL);
- }
-
/**
* Returns a list of all {@link RegistrarContact} objects for this registrar sorted by their email
* address.
@@ -834,11 +810,6 @@ public class Registrar extends ImmutableObject implements Buildable, Jsonifiable
return this;
}
- public Builder setBillingMethod(BillingMethod billingMethod) {
- getInstance().billingMethod = billingMethod;
- return this;
- }
-
public Builder setPassword(String password) {
// Passwords must be [6,16] chars long. See "pwType" in the base EPP schema of RFC 5730.
checkArgument(
diff --git a/java/google/registry/module/frontend/BUILD b/java/google/registry/module/frontend/BUILD
index a37dec480..1f99a1b17 100644
--- a/java/google/registry/module/frontend/BUILD
+++ b/java/google/registry/module/frontend/BUILD
@@ -8,7 +8,6 @@ java_library(
name = "frontend",
srcs = glob(["*.java"]),
deps = [
- "//java/google/registry/braintree",
"//java/google/registry/config",
"//java/google/registry/dns",
"//java/google/registry/flows",
diff --git a/java/google/registry/module/frontend/FrontendComponent.java b/java/google/registry/module/frontend/FrontendComponent.java
index 93410de45..8d5700437 100644
--- a/java/google/registry/module/frontend/FrontendComponent.java
+++ b/java/google/registry/module/frontend/FrontendComponent.java
@@ -17,7 +17,6 @@ package google.registry.module.frontend;
import com.google.monitoring.metrics.MetricReporter;
import dagger.Component;
import dagger.Lazy;
-import google.registry.braintree.BraintreeModule;
import google.registry.config.RegistryConfig.ConfigModule;
import google.registry.flows.ServerTridProviderModule;
import google.registry.flows.custom.CustomLogicFactoryModule;
@@ -34,7 +33,7 @@ import google.registry.request.Modules.UrlFetchTransportModule;
import google.registry.request.Modules.UseAppIdentityCredentialForGoogleApisModule;
import google.registry.request.Modules.UserServiceModule;
import google.registry.request.auth.AuthModule;
-import google.registry.ui.ConsoleConfigModule;
+import google.registry.ui.ConsoleDebug.ConsoleConfigModule;
import google.registry.util.SystemClock.SystemClockModule;
import google.registry.util.SystemSleeper.SystemSleeperModule;
import javax.inject.Singleton;
@@ -45,7 +44,6 @@ import javax.inject.Singleton;
modules = {
AppIdentityCredentialModule.class,
AuthModule.class,
- BraintreeModule.class,
ConfigModule.class,
ConsoleConfigModule.class,
CustomLogicFactoryModule.class,
diff --git a/java/google/registry/module/frontend/FrontendRequestComponent.java b/java/google/registry/module/frontend/FrontendRequestComponent.java
index badeb2131..316da2b51 100644
--- a/java/google/registry/module/frontend/FrontendRequestComponent.java
+++ b/java/google/registry/module/frontend/FrontendRequestComponent.java
@@ -26,8 +26,6 @@ import google.registry.request.RequestComponentBuilder;
import google.registry.request.RequestModule;
import google.registry.request.RequestScope;
import google.registry.ui.server.registrar.ConsoleUiAction;
-import google.registry.ui.server.registrar.RegistrarPaymentAction;
-import google.registry.ui.server.registrar.RegistrarPaymentSetupAction;
import google.registry.ui.server.registrar.RegistrarSettingsAction;
/** Dagger component with per-request lifetime for "default" App Engine module. */
@@ -44,8 +42,6 @@ interface FrontendRequestComponent {
EppConsoleAction eppConsoleAction();
EppTlsAction eppTlsAction();
FlowComponent.Builder flowComponentBuilder();
- RegistrarPaymentAction registrarPaymentAction();
- RegistrarPaymentSetupAction registrarPaymentSetupAction();
RegistrarSettingsAction registrarSettingsAction();
@Subcomponent.Builder
diff --git a/java/google/registry/repositories.bzl b/java/google/registry/repositories.bzl
index eb3ac5454..9bf9427ed 100644
--- a/java/google/registry/repositories.bzl
+++ b/java/google/registry/repositories.bzl
@@ -23,7 +23,6 @@ def domain_registry_bazel_check():
def domain_registry_repositories(
omit_com_beust_jcommander=False,
- omit_com_braintreepayments_gateway_braintree_java=False,
omit_com_fasterxml_jackson_core=False,
omit_com_fasterxml_jackson_core_jackson_annotations=False,
omit_com_fasterxml_jackson_core_jackson_databind=False,
@@ -163,8 +162,6 @@ def domain_registry_repositories(
domain_registry_bazel_check()
if not omit_com_beust_jcommander:
com_beust_jcommander()
- if not omit_com_braintreepayments_gateway_braintree_java:
- com_braintreepayments_gateway_braintree_java()
if not omit_com_fasterxml_jackson_core:
com_fasterxml_jackson_core()
if not omit_com_fasterxml_jackson_core_jackson_annotations:
@@ -447,17 +444,6 @@ def com_beust_jcommander():
licenses = ["notice"], # The Apache Software License, Version 2.0
)
-def com_braintreepayments_gateway_braintree_java():
- java_import_external(
- name = "com_braintreepayments_gateway_braintree_java",
- jar_sha256 = "e6fa51822d05334971d60a8353d4bfcab155b9639d9d8d3d052fe75ead534dd9",
- jar_urls = [
- "http://domain-registry-maven.storage.googleapis.com/repo1.maven.org/maven2/com/braintreepayments/gateway/braintree-java/2.54.0/braintree-java-2.54.0.jar",
- "http://repo1.maven.org/maven2/com/braintreepayments/gateway/braintree-java/2.54.0/braintree-java-2.54.0.jar",
- ],
- licenses = ["notice"], # MIT license
- )
-
def com_fasterxml_jackson_core():
java_import_external(
name = "com_fasterxml_jackson_core",
diff --git a/java/google/registry/tools/CreateOrUpdateRegistrarCommand.java b/java/google/registry/tools/CreateOrUpdateRegistrarCommand.java
index e1b88cab1..1b828c926 100644
--- a/java/google/registry/tools/CreateOrUpdateRegistrarCommand.java
+++ b/java/google/registry/tools/CreateOrUpdateRegistrarCommand.java
@@ -29,7 +29,6 @@ import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableSet;
import com.google.common.collect.Sets;
import google.registry.model.registrar.Registrar;
-import google.registry.model.registrar.Registrar.BillingMethod;
import google.registry.model.registrar.RegistrarAddress;
import google.registry.model.registry.Registry;
import google.registry.tools.params.KeyValueMapParameter.CurrencyUnitToStringMap;
@@ -187,12 +186,6 @@ abstract class CreateOrUpdateRegistrarCommand extends MutatingCommand {
)
private Map billingAccountMap;
- @Nullable
- @Parameter(
- names = "--billing_method",
- description = "Method by which registry bills this registrar customer")
- private BillingMethod billingMethod;
-
@Nullable
@Parameter(
names = "--street",
@@ -367,7 +360,6 @@ abstract class CreateOrUpdateRegistrarCommand extends MutatingCommand {
newBillingAccountMap.putAll(billingAccountMap);
builder.setBillingAccountMap(newBillingAccountMap);
}
- Optional.ofNullable(billingMethod).ifPresent(builder::setBillingMethod);
List