use of com.braintreepayments.api.models.IdealResult in project braintree_android by braintree.
the class IdealActivity method onItemClick.
@Override
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
IdealBank bank = (IdealBank) mIssuingBanksListView.getAdapter().getItem(position);
IdealRequest builder = new IdealRequest().issuerId(bank.getId()).amount("10").orderId(UUID.randomUUID().toString()).currency("EUR");
Ideal.startPayment(mBraintreeFragment, builder, new BraintreeResponseListener<IdealResult>() {
@Override
public void onResponse(IdealResult idealResult) {
String idealId = idealResult.getId();
}
});
}
Aggregations