From 0b85a008173242d99bd40f3aec987ac533f7750b Mon Sep 17 00:00:00 2001 From: Jay Newstrom Date: Fri, 10 Jan 2025 09:32:50 -0600 Subject: [PATCH] Remove mutable merchantDisplayName from the embedded configuration builder. (#9885) --- .../android/paymentelement/EmbeddedPaymentElement.kt | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/paymentsheet/src/main/java/com/stripe/android/paymentelement/EmbeddedPaymentElement.kt b/paymentsheet/src/main/java/com/stripe/android/paymentelement/EmbeddedPaymentElement.kt index 33c79124c36..0fd4992d57d 100644 --- a/paymentsheet/src/main/java/com/stripe/android/paymentelement/EmbeddedPaymentElement.kt +++ b/paymentsheet/src/main/java/com/stripe/android/paymentelement/EmbeddedPaymentElement.kt @@ -144,7 +144,7 @@ class EmbeddedPaymentElement private constructor( /** * Your customer-facing business name. */ - private var merchantDisplayName: String + private val merchantDisplayName: String ) { private var customer: PaymentSheet.CustomerConfiguration? = ConfigurationDefaults.customer private var googlePay: PaymentSheet.GooglePayConfiguration? = ConfigurationDefaults.googlePay @@ -166,12 +166,6 @@ class EmbeddedPaymentElement private constructor( ConfigurationDefaults.cardBrandAcceptance private var embeddedViewDisplaysMandateText: Boolean = ConfigurationDefaults.embeddedViewDisplaysMandateText - /** - * Your customer-facing business name. - */ - fun merchantDisplayName(merchantDisplayName: String) = - apply { this.merchantDisplayName = merchantDisplayName } - /** * If set, the customer can select a previously saved payment method. */