Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed localizedDescription for PaymentSheetError. (stripe#3038)
## Summary PaymentSheetError was overriding localizedDescription directly which doesn't work when the PaymentSheetError is upcasted to Error. This PR implements the LocalizedError protocol which will make localizedDescription accurate and implements a test to ensure that. ## Test Plan ### Before <img width="297" alt="Screenshot 2023-11-02 at 10 40 03 AM" src="https://github.com/stripe/stripe-ios/assets/108435196/ea83746d-f986-4c4b-9db5-e555644044dd"> ### After ![Simulator Screenshot - iPhone 15 Pro - 2023-11-02 at 10 38 50](https://github.com/stripe/stripe-ios/assets/108435196/acbd5685-47a3-4ddf-8907-119d811a813c) Co-authored-by: NSChris <[email protected]>
- Loading branch information