fix(ios): add missing closing backtick in customerSessionClientSecret error message by reginaldalfret · Pull Request #2750 · stripe/stripe-react-native · GitHub
Skip to content

fix(ios): add missing closing backtick in customerSessionClientSecret error message - #2750

Merged
jaynewstrom-stripe merged 1 commit into
stripe:masterfrom
reginaldalfret:fix/issue-2677-customer-session-secret-error-typo
Oct 19, 2026
Merged

jaynewstrom-stripe merged 1 commit into
stripe:masterfrom
reginaldalfret:fix/issue-2677-customer-session-secret-error-typo

Conversation

@reginaldalfret

Copy link
Copy Markdown
Contributor

Summary

Fix a missing closing backtick on `customerSessionClientSecret` in iOS error messages across StripeSdkImpl+PaymentSheet.swift and StripeSdkImpl+Embedded.swift.

Motivation

Resolves #2677. In iOS, when both customerEphemeralKeySecret and customerSessionClientSecret are provided, the error string was missing the closing backtick on customerSessionClientSecret, resulting in:

`customerEphemeralKeySecret` and `customerSessionClientSecret cannot both be set

This caused mismatched markdown formatting, log warnings, and syntax parsing discrepancies. This fix aligns the iOS implementation with Android (PaymentElementConfig.kt), where the backtick was already correctly placed:

`customerEphemeralKeySecret` and `customerSessionClientSecret` cannot both be set

Testing

  • I tested this manually (verified diff against Android counterpart and codebase formatting)
  • I added automated tests

Documentation

  • This PR does not result in any developer-facing changes.

… error message

Signed-off-by: reginaldalfret <reginaldalfret@gmail.com>
@reginaldalfret
reginaldalfret requested review from a team as code owners October 19, 2026 06:46
@cla-assistant

cla-assistant Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

@jaynewstrom-stripe

Copy link
Copy Markdown
Collaborator

@jaynewstrom-stripe
jaynewstrom-stripe merged commit 012f3ed into stripe:master Oct 19, 2026
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

customerEphemeralKeySecret and customerSessionClientSecret cannot both be set

2 participants