Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Payer Email to Base Parameters if not empty #1497

Merged
merged 2 commits into from
Jan 13, 2025

Conversation

richherrera
Copy link
Contributor

Summary of changes

  • Add a conditional check to ensure that the userAuthenticationEmail is not empty before setting it as the payer_email in baseParameters.

Checklist

  • Added a changelog entry
  • Tested and confirmed payment flows affected by this change are functioning as expected

Authors

@richherrera richherrera requested a review from a team as a code owner January 10, 2025 19:56
@@ -68,7 +68,7 @@ import BraintreeCore
) -> [String: Any] {
var baseParameters = super.parameters(with: configuration)

if let userAuthenticationEmail {
if let userAuthenticationEmail, !userAuthenticationEmail.isEmpty {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets add a changelog for this, something like Fix bug to ensure that `BTPayPalVaultRequest.userAuthenticationEmail` is not sent as an empty string

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added: 94e2fc1

@richherrera richherrera merged commit 226e00c into main Jan 13, 2025
8 checks passed
@richherrera richherrera deleted the fix_user_authentication_email branch January 13, 2025 20:07
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.

4 participants