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

Remove support for legacy anonymous Uphold cards #24464

Closed
szilardszaloki opened this issue Aug 5, 2022 · 6 comments · Fixed by brave/brave-core#14536
Closed

Remove support for legacy anonymous Uphold cards #24464

szilardszaloki opened this issue Aug 5, 2022 · 6 comments · Fixed by brave/brave-core#14536
Assignees
Labels
dev-concern feature/rewards OS/Android Fixes related to Android browser functionality OS/Desktop OS/iOS Fixes related to iOS browser functionality priority/P3 The next thing for us to work on. It'll ride the trains. QA Pass - Android ARM QA Pass-macOS QA Pass-Win64 QA/Yes release-notes/include

Comments

@szilardszaloki
Copy link
Contributor

No description provided.

@szilardszaloki szilardszaloki added feature/rewards priority/P3 The next thing for us to work on. It'll ride the trains. dev-concern OS/Android Fixes related to Android browser functionality OS/Desktop labels Aug 5, 2022
@szilardszaloki szilardszaloki self-assigned this Aug 5, 2022
@szilardszaloki szilardszaloki added OS/iOS Fixes related to iOS browser functionality QA/Yes release-notes/include labels Aug 8, 2022
@brave-builds brave-builds added this to the 1.44.x - Nightly milestone Aug 12, 2022
@LaurenWags
Copy link
Member

Labelling as QA/Blocked for now, just until @brave/qa-team reviews with @szilardszaloki and @Miyayes 👍🏻

@LaurenWags
Copy link
Member

Discussed the following with @szilardszaloki and @GeetaSarvadnya re: test plan:

Desktop

Using description from PR as a guide:

Backup/Restore Modal:

  • confirm the anon user funded specific-variant for backup tab of backup/restore modal does not show on upgraded or clean profiles (pictured on PR)
  • confirm the regular backup tab of backup/restore modal does display as expected

Backup Notification:

  • skip as this has been dead code for some time (will not be able to trigger)

P3A:

  • confirm 1.43.x does have these questions
  • using a new profile, confirm 1.44.x does not have these questions
  • not necessary to test upgraded profiles for P3A

Prefs:

  • skip, unable to test

Anonymous wallet/user funds processor references in the contribution engine:

  • check 1 time tips, monthly tips, and AC all contribute/work as expected for anon vBAT funded and applicable custodians (ex. bF does not have AC)

POST /v1/orders/{order_id}/transactions/anonymousCard endpoint implementation

  • skip, unable to test

GET /v3/wallet/uphold/{payment_id} endpoint implementation

  • check tipping, covered above

Balance fetch

  • confirm balances from anon vBAT funded and custodians are displayed appropriately, can be checked as part of Anonymous wallet/user funds processor references in the contribution engine

Uphold linking

  • confirm able to link Uphold, can be checked as part of Anonymous wallet/user funds processor references in the contribution engine

Wallet creation

  • confirm able to join rewards and get a valid paymentID, can be checked as part of Anonymous wallet/user funds processor references in the contribution engine

Wallet recovery

  • confirm unable to restore an old anon, user funded wallet using restore words, can be checked as part of Backup/Restore Modal above
Android

Using description from PR as a guide:

Backup/Restore Modal:

  • I don't believe backup/restore is generally available on Android outside of QA Prefs, so for that confirm unable to restore an old anon, user funded rewards wallet using restore words

Backup Notification:

  • skip as this has been dead code for some time (will not be able to trigger)

P3A:

  • confirm 1.43.x does have these questions
  • using a new profile, confirm 1.44.x does not have these questions
  • not necessary to test upgraded profiles for P3A

Prefs:

  • skip, unable to test

Anonymous wallet/user funds processor references in the contribution engine:

  • check 1 time tips, monthly tips, and AC all contribute/work as expected for anon vBAT funded and applicable custodians (ex. bF does not have AC)

POST /v1/orders/{order_id}/transactions/anonymousCard endpoint implementation

  • skip, unable to test

GET /v3/wallet/uphold/{payment_id} endpoint implementation

  • check tipping, covered above

Balance fetch

  • confirm balances from anon vBAT funded and custodians are displayed appropriately, can be checked as part of Anonymous wallet/user funds processor references in the contribution engine

Uphold linking

  • confirm able to link Uphold, can be checked as part of Anonymous wallet/user funds processor references in the contribution engine

Wallet creation

  • confirm able to join rewards and get a valid paymentID, can be checked as part of Anonymous wallet/user funds processor references in the contribution engine

Wallet recovery

  • confirm unable to restore an old anon, user funded wallet using restore words, can be checked as part of Backup/Restore Modal above
iOS

Since Rewards is scaled back on iOS, using a clean profile confirm able to join Rewards/opt-in to viewing ads. Use the QA page to confirm paymentID is created as expected. Confirm able to view ads and be rewarded for them.

On upgrade profile, confirm opt-in status for Rewards/Ads (check both opted-in and not opted-in). Confirm if opt-ed in, your paymentID is the same before and after upgrade. Confirm you can still view ads after upgrade.

@LaurenWags
Copy link
Member

LaurenWags commented Sep 6, 2022

Verified with

Brave | 1.44.77 Chromium: 105.0.5195.102 (Official Build) beta (x86_64)
-- | --
Revision | 4c16f5ffcc2da70ee2600d5db77bed423ac03a5a-refs/branch-heads/5195_55@{#4}
OS | macOS Version 12.5.1 (Build 21G83)

Per Desktop section of #24464 (comment):

Skipped the following:

  • Backup Notification
  • Prefs
  • POST /v1/orders/{order_id}/transactions/anonymousCard endpoint implementation
Backup/Restore Modal - PASSED

Upgraded Profile:

  • Confirmed the anon user funded specific-variant for backup tab of backup/restore modal does not show on upgraded profile
  • Confirmed user funded balance displayed in 1.43.x, but does not display in 1.44.x
1.43.x 1.44.x
Screen Shot 2022-09-07 at 2 35 44 PM Screen Shot 2022-09-07 at 2 48 47 PM
Screen Shot 2022-09-07 at 2 36 01 PM Screen Shot 2022-09-07 at 2 48 53 PM
Screen Shot 2022-09-07 at 2 36 09 PM Screen Shot 2022-09-07 at 2 49 00 PM
Screen Shot 2022-09-07 at 2 36 17 PM Screen Shot 2022-09-07 at 2 49 09 PM
Screen Shot 2022-09-07 at 2 36 33 PM Screen Shot 2022-09-07 at 2 49 19 PM

Clean Profile:

  • Confirmed the anon user funded specific-variant for the backup tab of backup/restore modal does not show on a clean profile (unable to restore same wallet used in 1.43.x)
  • Confirmed user funded balance does not display in 1.44.x due to not being able to restore the wallet on a clean profile
  • Confirmed the regular backup tab of backup/restore modal does display as expected
Example Example Example Example Example
Screen Shot 2022-09-07 at 2 58 03 PM Screen Shot 2022-09-07 at 2 58 11 PM Screen Shot 2022-09-07 at 2 58 17 PM Screen Shot 2022-09-07 at 2 58 24 PM Screen Shot 2022-09-07 at 2 58 34 PM
P3A - PASSED

Confirmed 1.43.x (with restored user-funded, anonymous Rewards backup words), does have the Brave.Rewards.WalletState and Brave.Rewards.WalletBalance.3 P3A questions.
Using a new profile, confirmed 1.44.x does not have the Brave.Rewards.WalletState and Brave.Rewards.WalletBalance.3 P3A questions.

1.43.x 1.44.x
1 43 x 1 44 x
Brave | 1.44.79 Chromium: 105.0.5195.102 (Official Build) beta (x86_64)
-- | --
Revision | 4c16f5ffcc2da70ee2600d5db77bed423ac03a5a-refs/branch-heads/5195_55@{#4}
OS | macOS Version 12.5.1 (Build 21G83)
Anonymous wallet/user funds processor references in the contribution engine - PASSED
Anon (vBAT) Rewards - PASSED

Confirmed 1 time tips work as expected (confirmed able to tip connected and KYC'd publishers, non verified creator tips went to Pending list).

Example Example Example Example Example
1 2 3 4 5

Confirmed monthly tips work as expected.

Example Example Example Example
1 2 3 and 8 4

Confirmed auto contribution works as expected.

Example Example Example Example
6 7 3 and 8 9
Gemini - PASSED

Confirmed 1 time tips work as expected (confirmed able to tip Gemini KYC'd publishers, non verified creator and different custodian KYC'd tips went to Pending list).

Example Example Example Example Example
tip1 tip2 tip3 tip4 tip5

Confirmed monthly tips work as expected.

Example Example Example Example
monthly1 monthly2 Screen Shot 2022-09-09 at 10 28 14 AM monthly4

Confirmed auto contribution works as expected.

Example Example Example Example
AC1 AC2 AC3 AC4
Uphold - PASSED

Confirmed 1 time tips work as expected (confirmed able to tip Uphold KYC'd publishers, non verified creator and different custodian KYC'd tips went to Pending list).

Example Example Example Example Example
1 2 3 4 5

Confirmed monthly tips work as expected.

Example Example Example Example
M1 2 3 M4

Confirmed auto contribution works as expected.

Example Example Example Example
AC1 2 3 AC4
bitFlyer - PASSED

Confirmed 1 time tips work as expected (confirmed able to tip bitFlyer KYC'd publishers, non verified creator and different custodian KYC'd tips went to Pending list).

Example Example Example Example Example
T1 T2 T3 T4 T5

Confirmed monthly tips work as expected.

Example Example Example Example
M1 M2 M3 M4

Confirmed no mention of auto contribution on brave://rewards page or panel.

Example Example
AC1 AC2
Balance fetch - PASSED

Confirmed balances from anon vBAT funded and all 3 custodians (Uphold, Gemini, bitFlyer) are displayed appropriately.
Verified as part of the Anonymous wallet/user funds processor references in the contribution engine, see that section for screenshots.

Uphold linking - PASSED

Confirmed able to link KYC'd Uphold account to Rewards.
Verified as part of the Anonymous wallet/user funds processor references in the contribution engine, see that section for screenshots.
Note, also checked VERIFIED and DISCONNECTED_VERIFIED statuses as part of a different issue, see #24112 (comment) for details.
Encountered issue with brave://rewards page not showing DISCONNECTED_VERIFIED status when the panel does - logged as #25311. Not sure it's due to the change covered by this issue/PR, but it can be encountered during this testing.

Wallet creation - PASSED

Confirmed able to join rewards and get a valid paymentID.
Verified as part of the Anonymous wallet/user funds processor references in the contribution engine, see that section for screenshots.

Wallet recovery - PASSED

Confirmed unable to restore an old anon, user funded wallet using restore words.
Verified as part of the Backup/Restore Modal, see that section for screenshots.

@LaurenWags LaurenWags added the QA/In-Progress Indicates that QA is currently in progress for that particular issue label Sep 6, 2022
@Uni-verse
Copy link
Contributor

Uni-verse commented Sep 6, 2022

@kylehickinson Please review and provide some feedback on how we should proceed for iOS. Whether i should create related issue on iOS or can be handled another way. Thanks.

#24464 (comment)

@LaurenWags LaurenWags added QA Pass-macOS and removed QA/In-Progress Indicates that QA is currently in progress for that particular issue labels Sep 9, 2022
@GeetaSarvadnya
Copy link

GeetaSarvadnya commented Sep 20, 2022

Verification PASSED on

Brave | 1.44.93 Chromium: 105.0.5195.136 (Official Build) beta (64-bit)
-- | --
Revision | 872774b783d0e674186a3adcd2f92e7aa22a219c-refs/branch-heads/5195_124@{#4}
OS | Windows 10 Version 21H2 (Build 19044.2006)
Backup/Restore Modal - PASSED

Upgraded Profile:

  • Confirmed the anon user funded specific-variant for backup tab of backup/restore modal does not show on upgraded profile
  • Confirmed user funded balance displayed in 1.43.x, but does not display in 1.44.x
1.43.x 1.44.x
image image
1.43.x 1.44.x
image image
1.43.x 1.44.x
image image
1.43.x 1.44.x
image image
1.43.x 1.44.x
image image

Clean Profile:

  • Confirmed the anon user funded specific-variant for the backup tab of backup/restore modal does not show on a clean profile (unable to restore same wallet used in 1.43.x)
  • Confirmed user funded balance does not display in 1.44.x due to not being able to restore the wallet on a clean profile
  • Confirmed the regular backup tab of backup/restore modal does display as expected
Example Example Example Example Example
image image image image image
P3A - PASSED

Confirmed 1.43.x (with restored user-funded, anonymous Rewards backup words), does have the Brave.Rewards.WalletState and Brave.Rewards.WalletBalance.3 P3A questions.
Using a new profile, confirmed 1.44.x does not have the Brave.Rewards.WalletState and Brave.Rewards.WalletBalance.3 P3A questions.

1.43.x 1.44.x
image image
Anonymous wallet/user funds processor references in the contribution engine - PASSED
Anon (vBAT) Rewards -PASSED

Confirmed 1 time tips work as expected (confirmed able to tip connected and KYC'd publishers, non verified creator tips went to Pending list).

Example Example Example Example Example
image image image image image

Confirmed monthly tips work as expected.

Example Example Example Example
image image image image

Confirmed auto contribution works as expected.

Example Example Example Example
image image image image
Gemini - PASSED

Confirmed 1 time tips work as expected (confirmed able to tip Gemini KYC'd publishers, non verified creator and different custodian KYC'd tips went to Pending list).

Example Example Example Example Example
image image image image image

Confirmed monthly tips work as expected.

Example Example Example Example
image image image image

Confirmed auto contribution works as expected.

Example Example Example Example
image image image image
Uphold - PASSED

Confirmed 1 time tips work as expected (confirmed able to tip Uphold KYC'd publishers, non verified creator and different custodian KYC'd tips went to Pending list).

Example Example Example Example Example
image image image image image

Confirmed monthly tips work as expected.

Example Example Example Example
image image image image

Confirmed auto contribution works as expected.

Example Example Example Example
image image image image
bitFlyer - SKIPPED
  • Unable to test as we don't have bF verified pubs
Balance fetch - PASSED

Confirmed balances from anon vBAT funded and all 3 custodians (Uphold, Gemini, bitFlyer) are displayed appropriately.
Verified as part of the Anonymous wallet/user funds processor references in the contribution engine, see that section for screenshots.

Uphold linking - PASSED

Confirmed able to link KYC'd Uphold account to Rewards.
Verified as part of the Anonymous wallet/user funds processor references in the contribution engine, see that section for screenshots.

Wallet creation - PASSED

Confirmed able to join rewards and get a valid paymentID.
Verified as part of the Anonymous wallet/user funds processor references in the contribution engine, see that section for screenshots.

Wallet recovery - PASSED

Confirmed unable to restore an old anon, user funded wallet using restore words.
Verified as part of the Backup/Restore Modal, see that section for screenshots.

@GeetaSarvadnya
Copy link

GeetaSarvadnya commented Sep 22, 2022

Verification PASSED on Vivo x70 pro with android version 12 running Bravemonoarm64.apk_1.44.95

Android section from #24464 (comment)

P3A - PASSED

Confirmed 1.43.x does have the Brave.Rewards.WalletState and Brave.Rewards.WalletBalance.3 P3A questions.
Using a new profile, confirmed 1.44.x does not have the Brave.Rewards.WalletState and Brave.Rewards.WalletBalance.3 P3A questions.

1.43.x 1.44.x
Screenshot_20220922_181633 Screenshot_20220922_181847
Anonymous wallet/user funds processor references in the contribution engine - PASSED
Anon (vBAT) Rewards -PASSED

Confirmed 1 time tips work as expected (confirmed able to tip connected and KYC'd publishers, non verified creator tips went to Pending list).

Example Example Example Example Example
Screenshot_20220923_113546 Screenshot_20221023_113900 Screenshot_20221023_113907 Screenshot_20221023_114038 Screenshot_20221023_114118

Confirmed monthly tips work as expected.

Example Example Example
Screenshot_20220923_113555 Screenshot_20221023_113814 Screenshot_20221023_122945

Confirmed auto contribution works as expected.

Example Example Example
Screenshot_20220923_113539 Screenshot_20221023_113814 Screenshot_20221023_114118
Gemini - PASSED

Confirmed 1 time tips work as expected (confirmed able to tip Gemini KYC'd publishers, non verified creator and different custodian KYC'd tips went to Pending list).

Example Example Example Example Example
Screenshot_20220923_131818 Screenshot_20221023_131247 Screenshot_20221023_131252 Screenshot_20220923_131943 Screenshot_20220923_131933

Confirmed monthly tips work as expected.

Example Example Example
Screenshot_20221023_131415 Screenshot_20221023_131247 Screenshot_20220923_131959

Confirmed auto contribution works as expected.

Example Example Example Example
Screenshot_20221023_131407 Screenshot_20221023_131247 Screenshot_20220923_131943
Uphold - PASSED

Confirmed 1 time tips work as expected (confirmed able to tip Uphold KYC'd publishers, non verified creator and different custodian KYC'd tips went to Pending list).

Example Example Example Example Example
Screenshot_20220923_133623 Screenshot_20221023_133912 Screenshot_20221023_133924 Screenshot_20221023_134042 Screenshot_20221023_134124

Confirmed monthly tips work as expected.

Example Example Example
Screenshot_20220923_133628 Screenshot_20221023_133912 Screenshot_20221023_134124

Confirmed auto contribution works as expected.

Example Example Example
Screenshot_20220923_133617 Screenshot_20221023_133912 Screenshot_20221023_134124

Ensured that the GET /v3/wallet/uphold/{payment_id} endpoint is implemented

[ REQUEST ]
    > URL: https://grant.rewards.bravesoftware.com/v3/wallet/uphold/7c07511d-4f8d-41ba-9355-67a6901d320b/claim
    > Method: POST
    > Content: {"signedLinkingRequest":"eyJib2R5Ijp7ImRlbm9taW5hdGlvbiI6eyJhbW91bnQiOiIwIiwiY3VycmVuY3kiOiJCQVQifSwiZGVzdGluYXRpb24iOiI0ZjE1Nzg2OC1lMjQzLTRlYWItYmJlYS1lMTAzMThhM2I5NzEifSwiaGVhZGVycyI6eyJkaWdlc3QiOiJTSEEtMjU2PThWbmdyanBDT3crbS9MSC9DNXMrL3hCMzRYZXFHeDNWTHl3aUJXM0pNOXc9Iiwic2lnbmF0dXJlIjoia2V5SWQ9XCJwcmltYXJ5XCIsYWxnb3JpdGhtPVwiZWQyNTUxOVwiLGhlYWRlcnM9XCJkaWdlc3RcIixzaWduYXR1cmU9XCJQeStpN3FwcU1PZW45NDdJcyttc1RzaThtWDhUdEl0VVkvUlpIK2JFcm9nUzNWYksxVGpUN0I2YUx0Q212SDViU2h6YU1jZUV6c3ZnUURrZFJTa1ZEUT09XCIifSwib2N0ZXRzIjoie1wiZGVub21pbmF0aW9uXCI6e1wiYW1vdW50XCI6XCIwXCIsXCJjdXJyZW5jeVwiOlwiQkFUXCJ9LFwiZGVzdGluYXRpb25cIjpcIjRmMTU3ODY4LWUyNDMtNGVhYi1iYmVhLWUxMDMxOGEzYjk3MVwifSJ9"}
    > Content Type: application/json; charset=utf-8
2022-09-27 20:29:43.883 9301-9301/? V/chromium: [VERBOSE6:logging_util.cc(137)] 
    [ RESPONSE - OnRequest ]
    > Url: https://grant.rewards.bravesoftware.com/v3/wallet/uphold/7c07511d-4f8d-41ba-9355-67a6901d320b/claim
    > Result: Success
    > HTTP Code: 200
    > Body: null
2022-09-27 20:29:43.910 9301-9301/? V/chromium: [VERBOSE5:ledger_impl.cc(117)] 
bitFlyer - SKIPPED
  • Unable to test as we don't have bF verified pubs
Balance fetch - PASSED

Confirmed balances from anon vBAT funded and all 3 custodians (Uphold, Gemini, bitFlyer) are displayed appropriately.
Verified as part of the Anonymous wallet/user funds processor references in the contribution engine, see that section for screenshots.

Uphold linking - PASSED

Confirmed able to link KYC'd Uphold account to Rewards.
Verified as part of the Anonymous wallet/user funds processor references in the contribution engine, see that section for screenshots.

Wallet creation - PASSED

Confirmed able to join rewards and get a valid paymentID.
Verified as part of the Anonymous wallet/user funds processor references in the contribution engine, see that section for screenshots.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev-concern feature/rewards OS/Android Fixes related to Android browser functionality OS/Desktop OS/iOS Fixes related to iOS browser functionality priority/P3 The next thing for us to work on. It'll ride the trains. QA Pass - Android ARM QA Pass-macOS QA Pass-Win64 QA/Yes release-notes/include
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants