This function is already in the main plugin you can find the settings in below locations,
=> WooCommerce settings >> Points & Rewards >> Redeem Points >>
=> WooCommerce settings >> Points & Rewards >> Earned Points >>
Do refer this screenshot to see how it works =>>
Note : This functionality will work only with taxation and will not work for shipping charges as due to restrictions from WooCommerce functionality.