• I just setup a test transaction in which I purchased a subscription through PayPal. On one of my webpages, I clicked on the Cancel Billing button, which I created by copying and pasting this code:

    [s2Member-Pro-PayPal-Form cancel=”1″ desc=”This will cancel your account. Are you sure?” captcha=”0″ /]

    First I got a message telling me I would need to login to PayPal. I clicked on the link the message provided and logged in to the PayPal account for my testing transaction. In PayPal I get this error message:

    “The unsubscribe button you clicked is invalid. You can find the status of all subscriptions in ‘My preapproved payments’.”

    If it helps, here’s some more information: The subscription I setup was with a PayPal Pro form, with a 7 day free trial, non-recurring.

Viewing 6 replies - 1 through 6 (of 6 total)
  • I also receive this “invalid” PayPal notification using S2M Framework (not pro) unless the user is already signed into PayPal before clicking the unsubscriber button.

    Surly this isn’t how it is suppose to work?

    Did you resolve this issue americanknight?

    Thread Starter americanknight

    (@americanknight)

    I’m afraid not. Still waiting for a response.

    @americanknight, I don’t know if you have resolved your issue but I have discovered the cause in my project and thought I’d share – just in case.

    I get the “invalid” notification when a Security Key is active on my PayPal account ( SMS code ). After deactivating the Security Key the unsubscription process works as expected.

    Hope it’s of help to someone ;o)

    @americanknight, did you enter your Merchant ID here? WP Admin -> s2Member -> PayPal Options -> Account Details -> Merchant ID

    See: Subscription Cancellation “Button” Invalid · Issue #27 · WebSharks/s2Member https://github.com/WebSharks/s2Member/issues/27#issuecomment-30482381

    I hope that helps.

    @ianhempsell Thanks for sharing that. 🙂

    Thread Starter americanknight

    (@americanknight)

    I appreciate the help. I looked into my PayPal account, and I don’t have a security key enabled, so that’s not the problem for me.

    Yes, I do have my merchant id configured with s2member. Though after looking at what Christian shared, I realized that my unsubscribe button is still using my merchant email address in the URL it generates instead of my merchant id (maybe I need to regenerate the short code?). So as an experiment, I replaced:

    https://www.paypal.com/cgi-bin/webscr?cmd=_subscr-find&alias=%5Bmy email]

    With

    https://www.paypal.com/cgi-bin/webscr?cmd=_subscr-find&alias=%5Bmy merchant id]

    On the up side, I now get this message when I’m redirected to PayPal:

    “To cancel a specific subscription click on its details. This will take you to its details page where you will find a Cancel button.”

    On the down side, no subscriptions are listed! Under “All Activity” (within the correct date range), there’s nothing there. So this actually makes the situation worse, because with the previous error message, it at least provided a link to where users could find their subscriptions and cancel them.

    I’m glad there’s some progress.

    Are you generating those with s2Member’s shortcodes for PayPal buttons, or from PayPal’s site? WP Admin -> s2Member -> PayPal Buttons -> Subscr. Cancellation

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘PayPal: "The unsubscribe button you clicked is invalid"’ is closed to new replies.