Create automatic discount on specific payment method

Hey! I need to create an automatic discount when my clients select cash/manual payment method, can this be done somehow with code? I asked this some time ago but got no reply. In Argentina this is very common but wix only offers automatic discount on products, not payment methods.