use of com.paypal.android.sdk.onetouch.core.config.ConfigManager in project braintree_android by braintree.
the class BrowserSwitchHelperUnitTest method setup.
@Before
public void setup() throws NameNotFoundException {
mContextInspector = getMockContextInspector();
mConfigManager = new ConfigManager(mContextInspector, mock(PayPalHttpClient.class));
mConfigManager.useHardcodedConfig(true);
}
use of com.paypal.android.sdk.onetouch.core.config.ConfigManager in project braintree_android by braintree.
the class AppSwitchHelperUnitTest method setup.
@Before
public void setup() throws NameNotFoundException {
SignatureVerificationOverrides.disableSignatureVerification(false);
mContextInspector = getMockContextInspector();
mConfigManager = new ConfigManager(mContextInspector, mock(PayPalHttpClient.class));
mConfigManager.useHardcodedConfig(true);
}
use of com.paypal.android.sdk.onetouch.core.config.ConfigManager in project braintree_android by braintree.
the class PayPalOneTouchCore method initService.
private static void initService(Context context) {
if (sConfigManager == null || sFptiManager == null) {
PayPalHttpClient httpClient = new PayPalHttpClient().setBaseUrl(EnvironmentManager.LIVE_API_M_ENDPOINT);
sConfigManager = new ConfigManager(getContextInspector(context), httpClient);
sFptiManager = new FptiManager(getContextInspector(context), httpClient);
}
// always refresh configuration
sConfigManager.refreshConfiguration();
}
Aggregations