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

fix: Alert user if attempting to use methods before initializing Stripe #853

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

charliecruzan-stripe
Copy link
Collaborator

@charliecruzan-stripe charliecruzan-stripe commented Mar 18, 2022

Summary

We can no longer make calls with the Stripe API client if it hasn't been initialized yet. Applies the same to the STPPaymentHandler on iOS

Motivation

This will force null checks and make it more difficult to add problematic code in the future.
closes #605

Testing

Some manual testing + CI

Documentation

Select one:

  • I have added relevant documentation for my changes.
  • This PR does not result in any developer-facing changes.

@charliecruzan-stripe charliecruzan-stripe force-pushed the charliecruzan-null-safety-stripe-api branch from 46f359a to c412a28 Compare April 22, 2022 15:02
@codingslash76
Copy link

Any update on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

intializePaymentSheet fails silently if initialize is not called
4 participants