How to set a rule that assigns a user to a specific Organic Group after the checkout process
For reference, this type of use case (selling access to an organic group) would be best handled now using the Commerce License framework, that has been designed specifically for this type of use cases.

We don't have integration with Organic Groups yet, but it seems straightforward to do in the framework.