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 return type from PaymentSession.init() #2163

Merged
merged 1 commit into from
Feb 11, 2020
Merged

Conversation

mshafrir-stripe
Copy link
Collaborator

Summary

Previously, PaymentSession.init() would return false
if an IllegalStateException was thrown. This logic
existed because CustomerSession.getInstance(), which
can throw an exception, was called within init().

The CustomerSession instance is now injected via
the constructor, and will throw an exception at
construction time

Previously, `PaymentSession.init()` would return `false`
if an `IllegalStateException` was thrown. This logic
existed because `CustomerSession.getInstance()`, which
can throw an exception, was called within `init()`.

The `CustomerSession` instance is now injected via
the constructor, and will throw an exception at
construction time.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants