-
Notifications
You must be signed in to change notification settings - Fork 665
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
Enable BDCC for cards #6415
Enable BDCC for cards #6415
Conversation
Diffuse output:
APK
DEX
ARSC
|
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.
Mostly looks good, there are a few minor things. We should be adding some tests for this work as well. We should probably add some tests to TransformSpecToElementsTest
, LpmRepositoryTest
, and add a UI test in TestHardCodedLpms
(or equivalent).
payments-ui-core/src/main/java/com/stripe/android/ui/core/elements/CardDetailsElement.kt
Outdated
Show resolved
Hide resolved
payments-ui-core/src/main/java/com/stripe/android/ui/core/elements/CardDetailsElement.kt
Outdated
Show resolved
Hide resolved
I will be for sure adding tests, I wanted to get eyes on this before working on adding tests in case I needed to change the approach. |
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 a few comments, but overall the approach seems right to me.
Also, we should look into redesigning our playground. It gets busier and busier 😅
payments-model/src/main/java/com/stripe/android/model/BillingDetailsCollectionConfiguration.kt
Outdated
Show resolved
Hide resolved
payments-model/src/main/java/com/stripe/android/model/BillingDetailsCollectionConfiguration.kt
Outdated
Show resolved
Hide resolved
payments-model/src/main/java/com/stripe/android/model/BillingDetailsCollectionConfiguration.kt
Outdated
Show resolved
Hide resolved
payments-ui-core/src/main/java/com/stripe/android/ui/core/elements/CardDetailsController.kt
Show resolved
Hide resolved
payments-ui-core/src/main/java/com/stripe/android/ui/core/elements/CardDetailsElement.kt
Outdated
Show resolved
Hide resolved
payments-ui-core/src/test/java/com/stripe/android/ui/core/elements/CardDetailsElementTest.kt
Outdated
Show resolved
Hide resolved
paymentsheet-example/src/androidTestDebug/java/com/stripe/android/TestHardCodedLpms.kt
Show resolved
Hide resolved
paymentsheet/src/main/java/com/stripe/android/paymentsheet/PaymentSheet.kt
Outdated
Show resolved
Hide resolved
paymentsheet/src/main/java/com/stripe/android/paymentsheet/PaymentSheet.kt
Outdated
Show resolved
Hide resolved
paymentsheet/src/main/java/com/stripe/android/paymentsheet/PaymentSheet.kt
Show resolved
Hide resolved
@@ -282,8 +283,8 @@ public final class com/stripe/android/paymentsheet/PaymentSheet$Configuration : | |||
public final fun component7 ()Z | |||
public final fun component8 ()Z | |||
public final fun component9 ()Lcom/stripe/android/paymentsheet/PaymentSheet$Appearance; | |||
public final fun copy (Ljava/lang/String;Lcom/stripe/android/paymentsheet/PaymentSheet$CustomerConfiguration;Lcom/stripe/android/paymentsheet/PaymentSheet$GooglePayConfiguration;Landroid/content/res/ColorStateList;Lcom/stripe/android/paymentsheet/PaymentSheet$BillingDetails;Lcom/stripe/android/paymentsheet/addresselement/AddressDetails;ZZLcom/stripe/android/paymentsheet/PaymentSheet$Appearance;Ljava/lang/String;)Lcom/stripe/android/paymentsheet/PaymentSheet$Configuration; | |||
public static synthetic fun copy$default (Lcom/stripe/android/paymentsheet/PaymentSheet$Configuration;Ljava/lang/String;Lcom/stripe/android/paymentsheet/PaymentSheet$CustomerConfiguration;Lcom/stripe/android/paymentsheet/PaymentSheet$GooglePayConfiguration;Landroid/content/res/ColorStateList;Lcom/stripe/android/paymentsheet/PaymentSheet$BillingDetails;Lcom/stripe/android/paymentsheet/addresselement/AddressDetails;ZZLcom/stripe/android/paymentsheet/PaymentSheet$Appearance;Ljava/lang/String;ILjava/lang/Object;)Lcom/stripe/android/paymentsheet/PaymentSheet$Configuration; | |||
public final fun copy (Ljava/lang/String;Lcom/stripe/android/paymentsheet/PaymentSheet$CustomerConfiguration;Lcom/stripe/android/paymentsheet/PaymentSheet$GooglePayConfiguration;Landroid/content/res/ColorStateList;Lcom/stripe/android/paymentsheet/PaymentSheet$BillingDetails;Lcom/stripe/android/paymentsheet/addresselement/AddressDetails;ZZLcom/stripe/android/paymentsheet/PaymentSheet$Appearance;Ljava/lang/String;Lcom/stripe/android/ui/core/BillingDetailsCollectionConfiguration;)Lcom/stripe/android/paymentsheet/PaymentSheet$Configuration; |
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.
Very unfortunate that we’re using data classes for this. I’ll investigate a way to mediate this before our next release.
Summary
Enabling Billing Details Collection Configuration for cards.
Motivation
https://docs.google.com/document/d/1eBKVqbdhky_b8ux5f_eKp1HdHxgbV1WdF_XQWp0kdk0/edit#
Testing
Screenshots