Use ASWebAuthenticationSession for PaymentFlowDriver
Thank you for your contribution to Braintree.
Before submitting this PR, note we cannot accept language translation PRs. We support the same languages that are supported by PayPal, and have a dedicated localization team to provide the translations. If there is an error in a specific translation, you may open an issue and we will escalate it to the localization team.
Summary of changes
Checklist
- [ ] Added a changelog entry
Authors
List GitHub usernames for everyone who contributed to this pull request.
Posting for posterity: I created this branch https://github.com/braintree/braintree_ios/tree/asweb-take2 which takes a different approach to trying to unit test this flow. It removes the ASWeb wrapper class, and instead calls handleOpenURL directly from the unit test, instead of trying to mock the ASWeb part of the flow here. I think this is a more straightforward path for us to unit test this.
@scannillo 😨 😭 😭
@scannillo gotta 🪃 to close now lol
Closing due to inactivity. See comment for details on picking up this work, if time permits.