Skip to content

Commit

Permalink
Mark IssuingCardPinService @deprecated & suggest alternative (#7723)
Browse files Browse the repository at this point in the history
* added changelog entry
* elaborated on changelog message
  • Loading branch information
vbc-stripe authored Dec 21, 2023
1 parent 4b215ad commit 87c612b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
### Payments
* [ADDED][7713](https://github.com/stripe/stripe-android/pull/7713) `CardInputWidget`, `CardMultilineWidget`, and `CardFormView` now support [card brand choice](https://stripe.com/docs/card-brand-choice) for eligible merchants. To provide a list of preferred networks, use `setPreferredNetworks()`.

* [DEPRECATED][7723](https://github.com/stripe/stripe-android/pull/7723) `IssuingCardPinService` is deprecated and will be removed in a future release. [Please use Issuing Elements instead](https://stripe.com/docs/issuing/elements)

## 20.35.2 - 2023-12-11

### PaymentSheet
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import kotlin.coroutines.CoroutineContext
/**
* Methods for retrieval / update of a Stripe Issuing card
*/
@Deprecated("Please use Issuing Elements instead: https://stripe.com/docs/issuing/elements")
class IssuingCardPinService @VisibleForTesting internal constructor(
keyProvider: EphemeralKeyProvider,
private val stripeRepository: StripeRepository,
Expand Down Expand Up @@ -325,6 +326,7 @@ class IssuingCardPinService @VisibleForTesting internal constructor(
)
}

@Suppress("DEPRECATION")
companion object {
private val TAG = IssuingCardPinService::class.java.name

Expand Down Expand Up @@ -361,6 +363,7 @@ class IssuingCardPinService @VisibleForTesting internal constructor(
stripeAccountId: String? = null,
keyProvider: EphemeralKeyProvider
): IssuingCardPinService {
Log.w(TAG, "Please use Issuing Elements instead: https://stripe.com/docs/issuing/elements")
return IssuingCardPinService(
keyProvider,
StripeApiRepository(
Expand Down

0 comments on commit 87c612b

Please sign in to comment.