Describe the bug
Before a user has any attributes/freetextfields set, the adyen plugin cannot select the correct Adyen method. This is because it updates the _attributes value, but does not insert it if it does not exist yet for the user.
Login as a user without a row in s_user_attributes
Add something to cart
Change payment method to Adyen method
It has not been selected
Expected behavior
The payment method is selected and is remembered.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
If user accounts are created before the systems knows of any attributes for user accounts, it will not create the entry in the s_user_attributes table. So this issue will only happen on 'old' accounts in newer environments.
Describe the bug Before a user has any attributes/freetextfields set, the adyen plugin cannot select the correct Adyen method. This is because it updates the _attributes value, but does not insert it if it does not exist yet for the user.
https://github.com/Adyen/adyen-shopware5/blob/c61c8ad1f7466e3975cfd7898060c9ac28333c08/Components/PaymentMethodService.php#L124-L133
To Reproduce Steps to reproduce the behavior:
Expected behavior The payment method is selected and is remembered.
Screenshots If applicable, add screenshots to help explain your problem.
Additional context If user accounts are created before the systems knows of any attributes for user accounts, it will not create the entry in the s_user_attributes table. So this issue will only happen on 'old' accounts in newer environments.