I know this isn’t the answer you’re looking for – but you’re setting yourself up for quite a bit of work.
The Woocommerce Wholesale Suite does exactly what you need flawlessly without all the extra work (aswell as role specific payment methods / shipping methods).
https://en-gb.wordpress.org/plugins/woocommerce-wholesale-prices/