I\'m using the following code to apply a coupon to a subscription via a front end form.
When you enter the code and click submit it runs the following. This works fine, i