How to install a specifc commit in Composer
composer require drupal/commerce_webform_order:dev-1.x#30668342035ae3add3a2e5163e84816fc96edd92

dev-1.x points to a git branch so it accepts the commit ref
1.x-dev is dev release at drupal.org and it does not have git commits to reference like that