Adyen / adyen-magento2-express-checkout

Adyen Magento 2 Express Checkout Module
MIT License
8 stars 2 forks source link

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

Closed candemiralp closed 1 year ago

candemiralp commented 1 year ago

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