How we do set when we click on the buy button of product page then it’s directly redirecting to the checkout page?
For this please visit general options > enable for one-click checkout > enable one-click checkout button for a single page.
After that it will get display on the single product page.