本文整理匯總了Java中com.braintreepayments.api.DataCollector類的典型用法代碼示例。如果您正苦於以下問題:Java DataCollector類的具體用法?Java DataCollector怎麽用?Java DataCollector使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
DataCollector類屬於com.braintreepayments.api包,在下文中一共展示了DataCollector類的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: onConfigurationFetched
import com.braintreepayments.api.DataCollector; //導入依賴的package包/類
@Override
public void onConfigurationFetched(Configuration configuration) {
mConfiguration = configuration;
mCardForm.cardRequired(true)
.expirationRequired(true)
.cvvRequired(configuration.isCvvChallengePresent())
.postalCodeRequired(configuration.isPostalCodeChallengePresent())
.mobileNumberRequired(false)
.actionLabel(getString(R.string.purchase))
.setup(this);
if (getIntent().getBooleanExtra(MainActivity.EXTRA_COLLECT_DEVICE_DATA, false)) {
DataCollector.collectDeviceData(mBraintreeFragment, new BraintreeResponseListener<String>() {
@Override
public void onResponse(String deviceData) {
mDeviceData = deviceData;
}
});
}
}
示例2: onConfigurationFetched
import com.braintreepayments.api.DataCollector; //導入依賴的package包/類
@Override
public void onConfigurationFetched(Configuration configuration) {
if (getIntent().getBooleanExtra(MainActivity.EXTRA_COLLECT_DEVICE_DATA, false)) {
DataCollector.collectDeviceData(mBraintreeFragment, new BraintreeResponseListener<String>() {
@Override
public void onResponse(String deviceData) {
mDeviceData = deviceData;
}
});
}
}