@Override public void onConfigurationFetched(Configuration configuration) { if (configuration.isPayPalEnabled()) { mPayPalButton.setVisibility(VISIBLE); } if (configuration.getAndroidPay().isEnabled(this)) { AndroidPay.isReadyToPay( mBraintreeFragment, new BraintreeResponseListener<Boolean>() { @Override public void onResponse(Boolean isReadyToPay) { if (isReadyToPay) { mAndroidPayButton.setVisibility(VISIBLE); } } }); } if (getIntent().getBooleanExtra(MainActivity.EXTRA_COLLECT_DEVICE_DATA, false)) { mDeviceData = DataCollector.collectDeviceData(mBraintreeFragment); } }
protected void setConfiguration(Configuration configuration) { mConfiguration = configuration; getHttpClient().setBaseUrl(configuration.getClientApiUrl()); }