Skip to content

Instantly share code, notes, and snippets.

Created May 26, 2016
What would you like to do?
new ResultCallback<BooleanResult>() {
public void onResult(@NonNull BooleanResult payEnabled) {
if (payEnabled.getStatus().isSuccess()) {
if (payEnabled.getValue()) {
// Woo! Android pay is enabled, lets show that Android Pay
// button and hide the standard checkout button!
} else {
// Unfortunately the user doesn't have Android Pay enabled,
// so hide the button and display the standard checkout button
} else {
// Looks like there was an error making the isReadyPay method call...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment