refatored all the code
tested up to 4.0
Merge branch 'master' of github.com:claudiosmweb/woocommerce-payment-discounts