Reading Stroke Color property inside Each

Hey everyone,
I’m trying to change the Rectangle Stroke Color by binding it to an object key inside Each.
my code looks like this:
1- Each code:

2- the paymentMethods contents:


3- the function that changes the PayColor value:


when i click on any of the items, the PayColor key actually is updated from White to the new color and in the console.log result:

but it had no effect in the ux, and it stayed White as the original value.

I spent a long time trying many alternatives. any hints to know what i did wrong :’( ?

A better approach would be to just toggle a boolean in JavaScript, and leave changing the color to UX code. Selection API sounds a lot like the right tool for the job in this case.

to be honest,i did not know that Selection exists.
thanks alot again.