I am trying to use the latest (v3.5.0 as of Dec. 2014) Braintree (BT) iOS sdk in my app. I was able to get a client token from my server and present BT's Drop In viewController:
Braintree *braintree = [Braintree braintreeWithClientToken:self.clientToken];
BTDropInViewController *dropInViewController = [braintree dropInViewControllerWithDelegate:self];
[self.navigationController pushViewController:dropInViewController animated:YES];
and BT generates a nonce, which I could capture in a BT delegate method and send to my server for transaction.
The problem I am trying to solve is that since users of my app make payments frequently, I have to save their cards info in the app so they make their next payments by just selecting one of their saved cards; otherwise they will have to enter their card info every time they make a payment. Basically, I just couldn't figure out how BT is getting the saved payment cards list as shown in the right image here:
https://github.com/braintree/braintree_ios#braintree-vzero-sdk-for-ios
Any pointer to what I need to do (or sample code) to save card info for future one-touch-payment? Thanks.