Skip to content

Commit

Permalink
Pass lowercase email into BillingDetails
Browse files Browse the repository at this point in the history
  • Loading branch information
tillh-stripe committed Nov 1, 2024
1 parent 52a42a2 commit 8dba4af
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,8 @@ internal class USBankAccountFormViewModel @Inject internal constructor(

return ElementsSessionContext.BillingDetails(
name = name,
email = email,
// The createPaymentDetails endpoint does not accept lowercase email.
email = email?.lowercase(),
phone = phone?.let { phoneController.getE164PhoneNumber(it) },
address = address?.let {
ElementsSessionContext.BillingDetails.Address(
Expand Down

0 comments on commit 8dba4af

Please sign in to comment.