From 7ef81aff18b7f08a7a39eaf8b5cf9707564ada48 Mon Sep 17 00:00:00 2001 From: michelleb-stripe <77996191+michelleb-stripe@users.noreply.github.com> Date: Fri, 10 Sep 2021 12:33:58 -0700 Subject: [PATCH] Fix address pre-populate on line 1 (#4183) --- .../paymentdatacollection/FormFragmentArguments.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/paymentsheet/src/main/java/com/stripe/android/paymentsheet/paymentdatacollection/FormFragmentArguments.kt b/paymentsheet/src/main/java/com/stripe/android/paymentsheet/paymentdatacollection/FormFragmentArguments.kt index 02aaa79a17f..e22e7647532 100644 --- a/paymentsheet/src/main/java/com/stripe/android/paymentsheet/paymentdatacollection/FormFragmentArguments.kt +++ b/paymentsheet/src/main/java/com/stripe/android/paymentsheet/paymentdatacollection/FormFragmentArguments.kt @@ -21,8 +21,8 @@ internal fun FormFragmentArguments.getValue(id: IdentifierSpec) = IdentifierSpec.Name -> this.billingDetails?.name IdentifierSpec.Email -> this.billingDetails?.email IdentifierSpec.Phone -> this.billingDetails?.phone - IdentifierSpec.Line2 -> this.billingDetails?.address?.line1 - IdentifierSpec.Line1 -> this.billingDetails?.address?.line2 + IdentifierSpec.Line1 -> this.billingDetails?.address?.line1 + IdentifierSpec.Line2 -> this.billingDetails?.address?.line2 IdentifierSpec.City -> this.billingDetails?.address?.city IdentifierSpec.State -> this.billingDetails?.address?.state IdentifierSpec.Country -> this.billingDetails?.address?.country