RE: Activate Store Commerce Getting Device Configuration failed.
I would recommend following the same steps mentioned by other members. I see it is failing in the first step itself. Make sure that you follow the correct format Commerce Server URL as below.

If it doesnt help have a look at CSU logs on LCS, which might provide you little more insights.