I am updating a custom WooCommerce payment gateway.
I added the ability for a site admin to create an order on behalf of the buyer. I'm running into an issue displaying error messages.
wc_add_notice( __( 'Transaction Error: Could not find corporate account in Apruve.',
'apruve-woocommerce' ),
'error' );
When that code executes in the admin panel, it throws the following error.
Fatal error: Uncaught Error: Call to undefined function wc_add_notice()
My question is, how can I get access to that WooCommerce::Functions method in my own plugin?