use of com.paypal.android.sdk.onetouch.core.network.PayPalHttpClient 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();
}
use of com.paypal.android.sdk.onetouch.core.network.PayPalHttpClient in project braintree_android by braintree.
the class FptiManagerUnitTest method setup.
@Before
public void setup() throws NameNotFoundException {
ContextInspector contextInspector = getMockContextInspector();
PayPalHttpClient httpClient = mock(PayPalHttpClient.class);
mFptiManager = spy(new FptiManager(contextInspector, httpClient));
}
Aggregations