PayPalOneTouch/src/main/java/com/paypal/android/sdk/onetouch/core/config/OAuth2Recipe.java
public ConfigEndpoint getEndpoint(String environment) {
        ConfigEndpoint configEndpoint;
        if (mEndpoints.containsKey(environment)) {
            configEndpoint = mEndpoints.get(environment);
        } else if (mEndpoints.containsKey(DEVELOP)) {
            configEndpoint = mEndpoints.get(DEVELOP);
        } else {
            // default to live as fallback
            configEndpoint = mEndpoints.get(EnvironmentManager.LIVE);
        }

        return configEndpoint;
    }
public ConfigEndpoint getEndpoint(String environment) {
        ConfigEndpoint configEndpoint;
        if (mEndpoints.containsKey(environment)) {
            configEndpoint = mEndpoints.get(environment);
        } else if (mEndpoints.containsKey(DEVELOP)) {
            configEndpoint = mEndpoints.get(DEVELOP);
        } else {
            // default to live as fallback
            configEndpoint = mEndpoints.get(EnvironmentManager.LIVE);
        }

        return configEndpoint;
    }
public ConfigEndpoint getEndpoint ( String environment ) { ConfigEndpoint configEndpoint ; if ( mEndpoints . containsKey ( environment ) ) { configEndpoint = mEndpoints . get ( environment ) ; } else if ( mEndpoints . containsKey ( DEVELOP ) ) { configEndpoint = mEndpoints . get ( DEVELOP ) ; } else { // default to live as fallback configEndpoint = mEndpoints . get ( EnvironmentManager . LIVE ) ; } return configEndpoint ; }
1. Look for exact match of environment. (Could be mock, live, or a particular host:port.) 2.
If environment is anything other than mock or live, then look for develop. 3. Look for live.
(There should always be a live endpoint specified in any v3 browser-switch recipe.)

@param environment
@return
1 . Look for exact match of environment . ( Could be mock live or a particular host : port . ) 2 . If environment is anything other than mock or live then look for develop . 3 . Look for live . ( There should always be a live endpoint specified in any v3 browser - switch recipe . )