Skip to content

Commit

Permalink
Remove mutable merchantDisplayName from the embedded configuration bu…
Browse files Browse the repository at this point in the history
…ilder. (#9885)
  • Loading branch information
jaynewstrom-stripe authored Jan 10, 2025
1 parent e2c53e6 commit 0b85a00
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.
*/
Expand Down

0 comments on commit 0b85a00

Please sign in to comment.