New Bug: Paypal Cancel/unsubscribe button not clickable anymore if user not logged in

I’m very sure it was possible to click the Paypal Unsubscribe button for users not logged into the website:

[s2Member-PayPal-Button cancel=“1” image=“default” output=“anchor” /]

The button created with this code I mean.

However now the user needs to be logged in for this button to work. This does not make sense for users who paid with button payments for my understanding.

This should be corrected. I’m not sure until which version this worked. Now if in incognito mode of my browser the button will be slightly greyed out.

Is it possible now to cancel the subscription directly without logging into paypal`for users with a paypal subscription? I’m not really sure what changed here since hte paypal payment button method got upgraded to the current one a few months ago.

Isn’t it essential that the user would need to be logged in so that s2M/Paypal would know what account needs to be unsubscribed? How would they know otherwise?

1 Like

No on button payment user goes to PayPal to a site listing all his subscriptions and cancels. It’s not needed to be logged in.

I as administrator without a subscription can follow the button, but a non logged in user cannot. That’s clearly a bug.

If it were possible to cancel directly on site without being forwarded to PayPal being logged in would be needed. So that button could have two modes: logged In with subscription - getting a pop up asking for confirmation to cancel. Any other case forward to PayPal.

I’m not even sure on site cancellations for button payment subscriptions are possible now or not. With the old PayPal payment system this was not possible.

I have a cancellation button on my site for Paypal and even for Stripe. I have no issue with it.

So on your website the button works if user is in incognito browser mode?

Btw that’s absolutely needed, because some users never create an account. So if you need to be logged in to cancel that clearly is a bug concerning PayPal button payment

Thanks for reporting that, Felix.

The intended behavior was that output “button” requires the user to be logged in to get his subscr ID to cancel it via API, but output “anchor” or “url” would link to PayPal. I reviewed the code and found that “url” was fine, but there was a mistake that caused “anchor” to be disabled when logged out.

Please try this version:
s2member-dev-v260505.1700.zip (1.4 MB)

:slight_smile:

Okay, btw the intended behaviour is not or very poorly explained on the paypal button page in s2member. You should add some explanation text there.

Yes the new version does work again as before.
For example I have no clue what the difference between anchor and url will be without trying it out first. Yes I know that anchor is a button that links to paypal, but only after using it. For a first time user it’s hard to know what anchor means vs URL (just a hyperlink I assume), while the button funcion isn’t properly explained at all.

Thanks for the update. I’m glad it worked for you now.

The shortcode explanations were already there in the PayPal Standard buttons. I will be updating the output one after making PayPal Checkout the default. I’ll soon take it out of beta, it’s been very stable.

:slight_smile:

I didn’t understand it exactly there… Try to write it for less technical minds about what each setting does in layman’s terms…
Also a mention in the change log about the new behaviour would be good. I’m sure many people missed that output=button allows on site cancellations now for any PayPal subscription (no matter how it was created)

And yeah besides that bug I didn’t encounter any others in the recent versions.

1 Like

This is the entry from the changelog draft:

  • (Framework) Fix: PayPal Checkout cancellation shortcodes now keep output="anchor" clickable for logged-out visitors. Only output="button" requires the member to be logged in. See thread 13450

And yeah besides that bug I didn’t encounter any others in the recent versions.

Excellent :slight_smile:

:slight_smile:

1 Like