Skip to content

Commit

Permalink
Update MIGRATING.md for v11.0.0 (#1482)
Browse files Browse the repository at this point in the history
  • Loading branch information
mshafrir-stripe authored Sep 5, 2019
1 parent a61d0f4 commit 3453be7
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion MIGRATING.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,22 @@
## Migration Guides

### Migrating from versions < 11.0.0
- Version `11.0.0` will require [AndroidX](https://developer.android.com/jetpack/androidx). Please read the [Migrating to AndroidX](https://developer.android.com/jetpack/androidx/migrate) guide for more information.
- [AndroidX](https://developer.android.com/jetpack/androidx) is required. Please read the [Migrating to AndroidX](https://developer.android.com/jetpack/androidx/migrate) guide for more information. See [#1478](https://github.com/stripe/stripe-android/pull/1478).
- The signatures of `PaymentConfiguration.init()` and `PaymentConfiguration.getInstance()` have been changed. They now both take a `Context` instance as the first argument. See [#1479](https://github.com/stripe/stripe-android/pull/1479).
```kotlin
// before
PaymentConfiguration.init("publishable_key")
PaymentConfiguration.getInstance()

// after
PaymentConfiguration.init(context, "publishable_key")
PaymentConfiguration.getInstance(context)
```
- `Source` is immutable. All setter methods have been removed. See [#1480](https://github.com/stripe/stripe-android/pull/1480).
- `TokenCallback` and `SourceCallback` have been removed. Use `ApiResultCallback<Token>` and `ApiResultCallback<Source>` instead. See [#1481](https://github.com/stripe/stripe-android/pull/1481).
- `StripeIntent#getStatus()` has been removed. Use `StripeIntent#getOutcome()` instead.
- `PaymentIntent#getSource()` has been removed. Use `PaymentIntent#getPaymentMethodId()` instead.
- `SetupIntent#getCustomerId()` has been removed. This method was unintentionally added and always returned `null`.

### Migration from versions < 10.1.0
- You must call `PaymentConfiguration.init()` before calling `CustomerSession.initCustomerSession()`.
Expand Down

0 comments on commit 3453be7

Please sign in to comment.