I’ve never done it, but this is what I’d try:
Find: function groups_send_membership_request
And find the do_action near the end of that function.
Use that hook to call a function that does what you need re Woo.
After payment, make a call to function groups_accept_membership_request also in bp-groups-functions.php.