-
Notifications
You must be signed in to change notification settings - Fork 657
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
Update CVC Recollection API for Deferred Intent flow #9158
Conversation
Diffuse output:
APK
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a note to the changelog?
paymentsheet/src/main/java/com/stripe/android/paymentsheet/PaymentSheet.kt
Outdated
Show resolved
Hide resolved
CHANGELOG.md
Outdated
@@ -2,6 +2,8 @@ | |||
|
|||
## XX.XX.XX - 20XX-XX-XX | |||
|
|||
*[ADDED][9158](https://github.com/stripe/stripe-android/pull/9158) Add `requireCvcRecollection` param to `IntentConfiguration` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should mention this is still in private beta, it's a breaking API change, and how to migrate.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, we have the migration docs ready but they're not deployed. Should I remove the changelog addition and add once we're ready to GA?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to mention the breaking change (removing the callback). Ideally we point to the migration guide as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added verbiage about breaking change and private beta. Will update to point to migration guide if we have approval by the next release
...tsheet/src/main/java/com/stripe/android/paymentsheet/flowcontroller/DefaultFlowController.kt
Show resolved
Hide resolved
...et/src/test/java/com/stripe/android/paymentsheet/flowcontroller/DefaultFlowControllerTest.kt
Show resolved
Hide resolved
3 builds increased size
Stripe Identity Example 20.48.6-theme1 (20)
|
Item | Install Size Change | Download Size Change |
---|---|---|
🗑 androidx.compose.ui.text.android.selection.WordIterator$Companion | ⬇️ -38.2 kB | ⬇️ -18.3 kB |
📝 androidx.fragment.app.FragmentAnim$AnimationOrAnimator | ⬆️ 33.1 kB | ⬆️ 15.9 kB |
🗑 androidx.emoji2.viewsintegration.EmojiEditTextHelper$HelperIntern... | ⬇️ -33.1 kB | ⬇️ -15.9 kB |
androidx.transition.ViewUtilsApi21 | ⬆️ 32.9 kB | ⬆️ 15.8 kB |
📝 androidx.activity.compose.BackHandlerKt | ⬆️ 28.6 kB | ⬆️ 13.7 kB |
Financial Connections Example 20.48.6 (204806)
com.stripe.android.financialconnections.example
⚖️ Compare build
⏱️ Analyze build performance
Total install size change: ⬆️ 1.5 MB (19.34%)
Total download size change: ⬆️ 650.7 kB (18.39%)
Largest size changes
Item | Install Size Change | Download Size Change |
---|---|---|
kotlin.sequences.SequencesKt__SequencesJVMKt | ⬆️ 68.8 kB | ⬆️ 32.5 kB |
📝 androidx.fragment.app.SpecialEffectsController$Operation$State$Co... | ⬆️ 65.3 kB | ⬆️ 30.8 kB |
androidx.work.impl.model.RawWorkInfoDao_Impl | ⬆️ 53.9 kB | ⬆️ 25.3 kB |
📝 com.google.android.gms.dynamite.zzb | ⬆️ 50.7 kB | ⬆️ 23.9 kB |
kotlin.collections.MapsKt__MapsKt | ⬇️ -46.7 kB | ⬇️ -22.3 kB |
PaymentSheet Example 20.48.6 (11)
com.stripe.android.paymentsheet.example
⚖️ Compare build
⏱️ Analyze build performance
Total install size change: ⬆️ 28.7 kB (0.18%)
Total download size change: ⬆️ 11.2 kB (0.13%)
Largest size changes
Item | Install Size Change | Download Size Change |
---|---|---|
kotlin.collections.SetsKt | ⬆️ 36.6 kB | ⬆️ 16.7 kB |
kotlin.collections.MapsKt__MapsKt | ⬇️ -35.5 kB | ⬇️ -16.2 kB |
🗑 androidx.emoji2.text.MetadataListReader | ⬇️ -28.7 kB | ⬇️ -13.1 kB |
📝 androidx.compose.foundation.layout.IntrinsicKt | ⬆️ 25.8 kB | ⬆️ 11.8 kB |
📝 com.google.android.material.textfield.IconHelper | ⬆️ 23.0 kB | ⬆️ 10.5 kB |
🛸 Powered by Emerge Tools
Comment trigger: Size diff threshold of 100.00kB exceeded
CHANGELOG.md
Outdated
@@ -2,7 +2,7 @@ | |||
|
|||
## XX.XX.XX - 20XX-XX-XX | |||
|
|||
*[ADDED][9158](https://github.com/stripe/stripe-android/pull/9158) Add `requireCvcRecollection` param to `IntentConfiguration` | |||
*[ADDED][9158](https://github.com/stripe/stripe-android/pull/9158) Add `requireCvcRecollection` param to `IntentConfiguration`. Currently in private beta. This is a breaking change for merchants using `PaymentSheet.Builder.cvcRecollectionEnabledCallback` and `PaymentSheet.FlowController.Builder.cvcRecollectionEnabledCallback` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we could reword this to be a little more clear.
A few things:
- Let's update the tag from [ADDED] -> [BREAKING]
- Let's start with something like "Updates to CVC recollection APIs, currently in private beta", then list the changes
- Let's also mention (probably at the end) this is still in private beta, and requires the experimental API annotation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated 👍
@@ -328,7 +328,8 @@ class PaymentSheetEventTest { | |||
"duration" to 5f, | |||
"selected_lpm" to "none", | |||
"intent_type" to "payment_intent", | |||
"ordered_lpms" to "card,klarna" | |||
"ordered_lpms" to "card,klarna", | |||
"require_cvc_recollection" to false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please separate analytics into another PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reverted, will add in follow up PR
Summary
Update CVC Recollection API
Motivation
API Review
Integration Guide
Testing
Changelog