Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Step 8 appears to be faulty #19

Open
chemica opened this issue Feb 10, 2024 · 0 comments
Open

Step 8 appears to be faulty #19

chemica opened this issue Feb 10, 2024 · 0 comments

Comments

@chemica
Copy link

chemica commented Feb 10, 2024

Instruction:

Open the app/src/main/CheckoutActivity.kt file

Problem:

There is no such file. The location appears to be:

android/app/src/main/java/com/google/android/gms/samples/wallet/activity/CheckoutActivity.kt

Instruction:

Replace the value of token with the JWT you created previously

// TODO: Save the JWT from the backend "response"
private val token = "TOKEN"

Problem:

There is no such comment in the file, or in the equivalent file in the complete version of the app. This problem is true of several instructions in this step.

Instruction:

Set a listener for the Add to Google Wallet button

// TODO: Set an on-click listener on the "Add to Google Wallet" button
addToGoogleWalletButton = layout.addToGoogleWalletButton.

addToGoogleWalletButton.setOnClickListener {
  walletClient.savePassesJwt(token, this, addToGoogleWalletRequestCode)
}

Problem:

This is not valid code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant