From f32ed1ff251be87c85e72b8957f544470b02a6bd Mon Sep 17 00:00:00 2001 From: Tim M <7265906+Epreuve@users.noreply.github.com> Date: Tue, 15 Feb 2022 16:47:26 -0500 Subject: [PATCH] Update docs links to point to PayPal domain (#514) * Update docs links to point to PayPal domain Co-authored-by: Tim Martinak Co-authored-by: Jax DesMarais-Leder --- .../com/braintreepayments/api/AuthenticationInsight.java | 2 +- .../src/main/java/com/braintreepayments/api/CardClient.java | 2 +- DEVELOPMENT.md | 2 +- .../java/com/braintreepayments/api/GooglePayClient.java | 2 +- .../java/com/braintreepayments/api/LocalPaymentRequest.java | 2 +- .../main/java/com/braintreepayments/api/PayPalClient.java | 6 +++++- README.md | 6 +++--- .../java/com/braintreepayments/api/ThreeDSecureClient.java | 6 ++++-- .../main/java/com/braintreepayments/api/UnionPayClient.java | 2 +- .../main/java/com/braintreepayments/api/VenmoClient.java | 2 +- .../java/com/braintreepayments/api/VisaCheckoutClient.java | 2 +- v4_MIGRATION_GUIDE.md | 2 +- 12 files changed, 21 insertions(+), 15 deletions(-) diff --git a/Card/src/main/java/com/braintreepayments/api/AuthenticationInsight.java b/Card/src/main/java/com/braintreepayments/api/AuthenticationInsight.java index de447ca637..fb8c8320f8 100644 --- a/Card/src/main/java/com/braintreepayments/api/AuthenticationInsight.java +++ b/Card/src/main/java/com/braintreepayments/api/AuthenticationInsight.java @@ -47,7 +47,7 @@ static AuthenticationInsight fromJson(JSONObject json) { * @return The regulation environment for the associated nonce to help determine the need * for 3D Secure. * - * @see Documentation + * @see Documentation * for possible values. */ @NonNull diff --git a/Card/src/main/java/com/braintreepayments/api/CardClient.java b/Card/src/main/java/com/braintreepayments/api/CardClient.java index 5b377259b6..cf2c718ebc 100644 --- a/Card/src/main/java/com/braintreepayments/api/CardClient.java +++ b/Card/src/main/java/com/braintreepayments/api/CardClient.java @@ -9,7 +9,7 @@ /** * Used to tokenize credit or debit cards using a {@link Card}. For more information see the - * documentation + * documentation */ public class CardClient { diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md index 152adee6f9..28c4d2df70 100644 --- a/DEVELOPMENT.md +++ b/DEVELOPMENT.md @@ -43,7 +43,7 @@ The individual components may be of interest for advanced integrations and are e * Gradle * Android SDK >= 21 * Host app does not integrate with the Kount SDK -* Host app has a secure, authenticated server with a [Braintree server-side integration](https://developers.braintreepayments.com/android/start/hello-server) +* Host app has a secure, authenticated server with a [Braintree server-side integration](https://developer.paypal.com/braintree/docs/start/hello-server) ## Committing diff --git a/GooglePay/src/main/java/com/braintreepayments/api/GooglePayClient.java b/GooglePay/src/main/java/com/braintreepayments/api/GooglePayClient.java index ae22387532..ec5cbe4b3c 100644 --- a/GooglePay/src/main/java/com/braintreepayments/api/GooglePayClient.java +++ b/GooglePay/src/main/java/com/braintreepayments/api/GooglePayClient.java @@ -29,7 +29,7 @@ /** * Used to create and tokenize Google Pay payment methods. For more information see the - * documentation + * documentation */ public class GooglePayClient { diff --git a/LocalPayment/src/main/java/com/braintreepayments/api/LocalPaymentRequest.java b/LocalPayment/src/main/java/com/braintreepayments/api/LocalPaymentRequest.java index 707f4a3778..e98e39b487 100644 --- a/LocalPayment/src/main/java/com/braintreepayments/api/LocalPaymentRequest.java +++ b/LocalPayment/src/main/java/com/braintreepayments/api/LocalPaymentRequest.java @@ -114,7 +114,7 @@ public void setPaymentType(@Nullable String paymentType) { * the supported country codes for a given local payment type listed. * For local payments supported in multiple countries, this value * may determine which banks are presented to the customer. - * @see Supported Country Codes + * @see Supported Country Codes */ public void setPaymentTypeCountryCode(@Nullable String paymentTypeCountryCode) { this.paymentTypeCountryCode = paymentTypeCountryCode; diff --git a/PayPal/src/main/java/com/braintreepayments/api/PayPalClient.java b/PayPal/src/main/java/com/braintreepayments/api/PayPalClient.java index 05b31773ec..8b5ca4c3c5 100644 --- a/PayPal/src/main/java/com/braintreepayments/api/PayPalClient.java +++ b/PayPal/src/main/java/com/braintreepayments/api/PayPalClient.java @@ -13,7 +13,7 @@ /** * Used to tokenize PayPal accounts. For more information see the - * documentation + * documentation */ public class PayPalClient { @@ -41,12 +41,16 @@ private boolean browserSwitchNotPossible(FragmentActivity activity) { return !braintreeClient.canPerformBrowserSwitch(activity, BraintreeRequestCodes.PAYPAL); } + //TODO NEXT_MAJOR_VERSION + //Change link to docs to https://developer.paypal.com/braintree/docs/guides/paypal/overview/android/v4 private static Exception createPayPalError() { return new BraintreeException("PayPal is not enabled. " + "See https://developers.braintreepayments.com/guides/paypal/overview/android/ " + "for more information."); } + //TODO NEXT_MAJOR_VERSION + //Change link to docs to https://developer.paypal.com/braintree/docs/guides/client-sdk/setup/android/v4#browser-switch-setup private static Exception createBrowserSwitchError() { return new BraintreeException("AndroidManifest.xml is incorrectly configured or another app " + "defines the same browser switch url as this app. See " + diff --git a/README.md b/README.md index 43837fbf27..df7865d631 100644 --- a/README.md +++ b/README.md @@ -23,9 +23,9 @@ dependencies { ## Documentation -Start with [**'Hello, Client!'**](https://developers.braintreepayments.com/start/hello-client/android/v3) for instructions on basic setup and usage. +Start with [**'Hello, Client!'**](https://developer.paypal.com/braintree/docs/start/hello-client/android/v3) for instructions on basic setup and usage. -Next, read the [**full documentation**](https://developers.braintreepayments.com/guides/overview) for information about integration options, such as Drop-In UI, PayPal and credit card tokenization. +Next, read the [**full documentation**](https://developer.paypal.com/braintree/docs/guides/overview) for information about integration options, such as Drop-In UI, PayPal and credit card tokenization. ## Versions @@ -41,7 +41,7 @@ Versions 2.7.3 and below use outdated SSL certificates and are unsupported. ## Help -* [Read the docs](https://developers.braintreepayments.com/guides/overview) +* [Read the docs](https://developer.paypal.com/braintree/docs/guides/overview) * Find a bug? [Open an issue](https://github.com/braintree/braintree_android/issues) * Want to contribute? [Check out contributing guidelines](CONTRIBUTING.md) and [submit a pull request](https://help.github.com/articles/creating-a-pull-request). diff --git a/ThreeDSecure/src/main/java/com/braintreepayments/api/ThreeDSecureClient.java b/ThreeDSecure/src/main/java/com/braintreepayments/api/ThreeDSecureClient.java index ef921e6497..d08586d715 100644 --- a/ThreeDSecure/src/main/java/com/braintreepayments/api/ThreeDSecureClient.java +++ b/ThreeDSecure/src/main/java/com/braintreepayments/api/ThreeDSecureClient.java @@ -24,7 +24,7 @@ *

* One of the primary reasons to use 3D Secure is to benefit from a shift in liability from the * merchant to the issuer, which may result in interchange savings. Please read our online - * documentation + * documentation * for a full explanation of 3D Secure. */ public class ThreeDSecureClient { @@ -47,7 +47,7 @@ public ThreeDSecureClient(@NonNull BraintreeClient braintreeClient) { /** * Verification is associated with a transaction amount and your merchant account. To specify a * different merchant account (or, in turn, currency), you will need to specify the merchant - * account id when + * account id when * generating a client token *

* During lookup the original payment method nonce is consumed and a new one is returned, @@ -79,6 +79,8 @@ public void onResult(@Nullable final Configuration configuration, @Nullable Exce return; } + //TODO NEXT_MAJOR_VERSION + //Change link to docs to https://developer.paypal.com/braintree/docs/guides/client-sdk/setup/android/v4#browser-switch-setup boolean supportsBrowserSwitch = braintreeClient.canPerformBrowserSwitch(activity, THREE_D_SECURE); if (!supportsBrowserSwitch) { braintreeClient.sendAnalyticsEvent("three-d-secure.invalid-manifest"); diff --git a/UnionPay/src/main/java/com/braintreepayments/api/UnionPayClient.java b/UnionPay/src/main/java/com/braintreepayments/api/UnionPayClient.java index e8fa6c4ab8..0fe216b95d 100644 --- a/UnionPay/src/main/java/com/braintreepayments/api/UnionPayClient.java +++ b/UnionPay/src/main/java/com/braintreepayments/api/UnionPayClient.java @@ -11,7 +11,7 @@ /** * Used to check, enroll, and tokenize UnionPay cards. For more information see the - * documentation + * documentation */ public class UnionPayClient { diff --git a/Venmo/src/main/java/com/braintreepayments/api/VenmoClient.java b/Venmo/src/main/java/com/braintreepayments/api/VenmoClient.java index dfcf5cfe5b..ffcad6af03 100644 --- a/Venmo/src/main/java/com/braintreepayments/api/VenmoClient.java +++ b/Venmo/src/main/java/com/braintreepayments/api/VenmoClient.java @@ -16,7 +16,7 @@ import org.json.JSONObject; /** - * Used to create and tokenize Venmo accounts. For more information see the documentation + * Used to create and tokenize Venmo accounts. For more information see the documentation */ public class VenmoClient { diff --git a/VisaCheckout/src/main/java/com/braintreepayments/api/VisaCheckoutClient.java b/VisaCheckout/src/main/java/com/braintreepayments/api/VisaCheckoutClient.java index c905328968..5644e2f9be 100644 --- a/VisaCheckout/src/main/java/com/braintreepayments/api/VisaCheckoutClient.java +++ b/VisaCheckout/src/main/java/com/braintreepayments/api/VisaCheckoutClient.java @@ -15,7 +15,7 @@ /** * Used to create and tokenize Visa Checkout. For more information see the - * documentation + * documentation */ public class VisaCheckoutClient { diff --git a/v4_MIGRATION_GUIDE.md b/v4_MIGRATION_GUIDE.md index 924bdef86c..dcf2e92340 100644 --- a/v4_MIGRATION_GUIDE.md +++ b/v4_MIGRATION_GUIDE.md @@ -2,7 +2,7 @@ See the [CHANGELOG](/CHANGELOG.md) for a complete list of changes. This migration guide outlines the basics for updating your Braintree integration from v3 to v4. -_Documentation for v4 will be published to https://developers.braintreepayments.com once it is available for general release._ +_Documentation for v4 is available at https://developer.paypal.com/braintree/docs/start/hello-client/android/v4._ ## Table of Contents