Collect the card data from your UI and construct a CardBuilder with it. You can then tokenize that to get a nonce that can be sent to your server:

Java
Copy
Copied
CardBuilder cardBuilder = new CardBuilder()
  .cardNumber("4111111111111111")
  .expirationDate("09/2018");

braintree.tokenize(cardBuilder);

You'll need to register a listener to receive a payment method nonce once the Android Pay flow finishes.

Next Page: Server-side →

Still have questions?

If you can’t find an answer, contact our Support team