Hi Joflo,
In your products page, for each product and variant, there is a setting marked “This is a physical product”. If all of your products have this box unchecked (ie. no “physical products” in the cart) it will skip right to the payment page, without requiring any code.
Hope this helps!