-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deprecate non-APIClient sources of publishableKey, stripeAccount (#1474)
* Unrecommend Stripe.setDefaultPublishableKey in favor of STPAPIClient.sharedClient.publishableKey * Deprecate PaymentConfiguration.{publishableKey, stripeAccount}. Usage | Before | After all configuration changes: - PaymentContext configuration. This never worked and there's no use case. | Still doesn't work, still no use case. - CustomerContext configuration. This worked, but there is no use case. | Now, it only works if you set before STPAPIClient.shared is initialized. There's still no use case. - PaymentHandler, APIClient.shared configuration. This worked if you set before STPAPIClient.shared is initialized. | No change. * unrecom * Remove apiKey * PaymentConfiguration is just another property in APIClient, instead of the sorta-source-of-truth of publishableKey. * Actually, make Stripe.defaultPublishableKey do the expected thing instead of deprecating it * In docstrings, rename STPAPIClient.shared to [STPAPIClient sharedClient] * Make Stripe.defaultPublishableKey the default value of STPAPIClient publishableKey * Deprecate initWithConfiguration * Fix buggy default behavior, added test to catch it * Make STPAPIClient.publishableKey readonly * Revert "Make STPAPIClient.publishableKey readonly" This reverts commit 314256004a790edd3c35b090c3ed0b0b9506b84e. * Stripe.setDefaultPublishableKey sets the default value for publishableKey only (this is the status quo behavior). * Fix test and add docstring * Add Changelog, migrating, improve a deprecation string * Update MIGRATING.md Co-Authored-By: Cameron <36750494+csabol-stripe@users.noreply.github.com> * Update MIGRATING.md Co-Authored-By: Cameron <36750494+csabol-stripe@users.noreply.github.com> * Update MIGRATING.md Co-Authored-By: Cameron <36750494+csabol-stripe@users.noreply.github.com> * Update MIGRATING.md Co-Authored-By: Cameron <36750494+csabol-stripe@users.noreply.github.com> * Fix typos, grammar * English hard Co-authored-by: Cameron <36750494+csabol-stripe@users.noreply.github.com>
- Loading branch information
1 parent
47a13b2
commit d4c7a71
Showing
12 changed files
with
183 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.