Creating unsubscribe button for supporter

Can anybody guide me on creating a Cancel Subscription button to place on the supporter_paypal_gateway.php page. I'm wondering if the following code would work:

<form action="" method="post">
<input type="hidden" name="cmd" value="_subscr-find">
<input type="hidden" name="business" value="blah">
<input type="hidden" name="receiver_email" value="' . get_site_option( "supporter_paypal_email" ) . '">
<input type="hidden" name="alias" value="' . get_site_option( "supporter_paypal_email" ) . '">
<input type="hidden" name="custom" value="2">
<input type="hidden" name="return" value="' . $blog_url . 'wp-admin/supporter.php?updated=canceled&updatedmsg=' . urlencode(__('Subscription Canceled!', 'supporter')) . '">>
<input type="image" src="" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<input type="hidden" name="txn_type" value="subscr_cancel">
<input type="hidden" name="recurring" value="1">
<input type="hidden" name="reattempt" value="1"> </form>

Would appreciate it if someone offer some guidance. I would like the button to appear above the list of subscription plans.

  • Aaron
    • CTO

    Here is some sample code:
    <p><a title="Cancel Your Subscription" href=""><img src="" /></a><br /><small>You can also cancel following <a href=";jsessionid=rb18Lh0Tv8xl8zLPQgwQLJQczZJqZ340VQZPRxqmpRcyBhvz38wN!457314024?locale=en_US&_dyncharset=UTF-8&countrycode=US&cmd=_help-ext&serverInstance=9020&t=solutionTab&ft=searchTab&ps=solutionPanels&solutionId=11750&isSrch=Yes">these steps</a>.</small></p>

    Basically all it is is a link to where you replace it with your paypal account email address.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.