paypal / android-checkout-sdk

Apache License 2.0
77 stars 38 forks source link

How to clear previous user paypal data? #195

Closed Oooooori closed 1 year ago

Oooooori commented 1 year ago

Example:

Step 0: Initial state App User: nil Paypal User: nil

Step 1: User A logs into the app App User: A Paypal User: nil

Step 2: User A logs into their Paypal Checkout App User: A Paypal User: A

Step 3: User A logs out of the app App User: nil Paypal User: A

Step 4: User B logs into the app App User: B Paypal User: A

Step 5: User B goes to Paypal checkout and is able to use User A's Paypal. App User: B Paypal User: A

And in iOS SDK, I can call Checkout.logoutUser() how to logout user in android sdk???

saperi22 commented 1 year ago

@Oooooori apologies for the delayed reply. The logout functionality is slated to be available in our next release.

tdchow commented 1 year ago

Closing this issue as it's a duplicate of https://github.com/paypal/android-checkout-sdk/issues/99

The changes are already merged for programmatic logout. It will be in the next release.