Skip to content

Commit

Permalink
Update docs links to point to PayPal domain (#514)
Browse files Browse the repository at this point in the history
* Update docs links to point to PayPal domain

Co-authored-by: Tim Martinak <[email protected]>
Co-authored-by: Jax DesMarais-Leder <[email protected]>
  • Loading branch information
3 people authored Feb 15, 2022
1 parent 67c4e71 commit f32ed1f
Show file tree
Hide file tree
Showing 12 changed files with 21 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 <a href="https://developers.braintreepayments.com/guides/3d-secure/advanced-options/android#authentication-insight">Documentation</a>
* @see <a href="https://developer.paypal.com/braintree/docs/guides/3d-secure/advanced-options/android/v4#authentication-insight">Documentation</a>
* for possible values.
*/
@NonNull
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

/**
* Used to tokenize credit or debit cards using a {@link Card}. For more information see the
* <a href="https://developers.braintreepayments.com/guides/credit-cards/overview">documentation</a>
* <a href="https://developer.paypal.com/braintree/docs/guides/credit-cards/overview">documentation</a>
*/
public class CardClient {

Expand Down
2 changes: 1 addition & 1 deletion DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

/**
* Used to create and tokenize Google Pay payment methods. For more information see the
* <a href="https://developers.braintreepayments.com/guides/pay-with-google/overview">documentation</a>
* <a href="https://developer.paypal.com/braintree/docs/guides/google-pay/overview">documentation</a>
*/
public class GooglePayClient {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 <a href=https://developers.braintreepayments.com/guides/local-payment-methods/client-side-custom/android/v3#invoke-payment-flow>Supported Country Codes</a>
* @see <a href=https://developer.paypal.com/braintree/docs/guides/local-payment-methods/client-side-custom/android/v4#invoke-payment-flow>Supported Country Codes</a>
*/
public void setPaymentTypeCountryCode(@Nullable String paymentTypeCountryCode) {
this.paymentTypeCountryCode = paymentTypeCountryCode;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

/**
* Used to tokenize PayPal accounts. For more information see the
* <a href="https://developers.braintreepayments.com/guides/paypal/overview/android/">documentation</a>
* <a href="https://developer.paypal.com/braintree/docs/guides/paypal/overview/android/v4">documentation</a>
*/
public class PayPalClient {

Expand Down Expand Up @@ -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 " +
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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).

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* <p>
* 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
* <a href="https://developers.braintreepayments.com/guides/3d-secure/overview">documentation</a>
* <a href="https://developer.paypal.com/braintree/docs/guides/3d-secure/overview">documentation</a>
* for a full explanation of 3D Secure.
*/
public class ThreeDSecureClient {
Expand All @@ -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 <a href="https://developers.braintreepayments.com/android/sdk/overview/generate-client-token">
* account id when <a href="https://developer.paypal.com/braintree/docs/start/hello-client#get-a-client-token">
* generating a client token</a>
* <p>
* During lookup the original payment method nonce is consumed and a new one is returned,
Expand Down Expand Up @@ -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");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

/**
* Used to check, enroll, and tokenize UnionPay cards. For more information see the
* <a href="https://developers.braintreepayments.com/guides/unionpay/overview">documentation</a>
* <a href="https://developer.paypal.com/braintree/docs/guides/unionpay/overview">documentation</a>
*/
public class UnionPayClient {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import org.json.JSONObject;

/**
* Used to create and tokenize Venmo accounts. For more information see the <a href="https://developers.braintreepayments.com/guides/venmo/overview">documentation</a>
* Used to create and tokenize Venmo accounts. For more information see the <a href="https://developer.paypal.com/braintree/docs/guides/venmo/overview">documentation</a>
*/
public class VenmoClient {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

/**
* Used to create and tokenize Visa Checkout. For more information see the
* <a href="https://developers.braintreepayments.com/guides/visa-checkout/overview">documentation</a>
* <a href="https://developer.paypal.com/braintree/docs/guides/secure-remote-commerce/overview">documentation</a>
*/
public class VisaCheckoutClient {

Expand Down
2 changes: 1 addition & 1 deletion v4_MIGRATION_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit f32ed1f

Please sign in to comment.