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

[PW-7481] - Fix configuration value override for array values #9

Merged
merged 3 commits into from
Nov 14, 2022

Conversation

candemiralp
Copy link
Member

Summary

convertKeysToCamel() function is converting configuration array keys and values to camel case and cleans up the dashes and underscores.

However, configuration array values carry case sensitive information like merchant account.

Expected output is gatewatMerchantId: Some_MerchantAccount_Name
Actual value is gatewatMerchantId: SomeMerchantAccountName

This causes wrong gatewayMerchantId to be sent to Google. Now, only the array keys are being converted to camel case.

Tested scenarios

  • Google Pay Express
  • Apple Pay Express

@candemiralp candemiralp changed the title [PW-7481] - Fix configuration value override [PW-7481] - Fix configuration value override for array values Nov 14, 2022
peterojo
peterojo previously approved these changes Nov 14, 2022
@candemiralp candemiralp merged commit 47c90e2 into develop Nov 14, 2022
@candemiralp candemiralp deleted the PW-7481 branch November 14, 2022 13:35
@peterojo peterojo mentioned this pull request Dec 20, 2022
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.

3 participants