Paypal shortcode for Level 1 access works, long code, or other levels / modifications do not

Hello.

As the subject states, the only paypal code I can get to work is the Level 1 short code. The long code equivalent does not work

No code for the Modification buttons works.

EWP_Settings error in the url and ‘Things don’t appear to be working at the moment. Please try again later.’ on the page. Occasionally I will see a url with validatecaptcha in the url that forwards to the url with a flowlogging_id and code EWP_Settings.

Hi Shannon.

By long code, I think you mean the PayPal button long HTML code, right?

Is the problem only with subscription modifications (i.e. existing members, not new signups) and when using the PayPal button HTML code instead of the shortcode? Just trying to make sure I understand the problem.

EWP stands for Encrypted Website Payments. In your PayPal account, did you enable button encryption? It needs to be disabled for the unencrypted version of the button to work. https://www.paypal.com/businessmanage/preferences/website

“By enabling this feature, any buy now, donations, or subscription button that is not encrypted will be rejected by PayPal.”

The problem with unencrypted buttons, is that someone with a bit of knowledge can edit your button and pay a different amount. It’s better to have encryption enabled in PayPal and s2, and use s2’s shortcode.

Also, parts of the PayPal code for the button include PHP code, like the lines that reference the existing user account for a modification. So you need to be able to use PHP on your WP page for it to work correctly. These lines:

 <!-- Identifies/Updates An Existing User/Member (when/if applicable)  -->
 <input type="hidden" name="on0" value="<?php echo S2MEMBER_CURRENT_USER_VALUE_FOR_PP_ON0; ?>" />
 <input type="hidden" name="os0" value="<?php echo S2MEMBER_CURRENT_USER_VALUE_FOR_PP_OS0; ?>" />

What was your reason for using the PayPal code for the button instead of the s2Member shortcode?

I look forward to your update. :slight_smile:

Thank you so much for getting back to me.

I turned the encrypted button option off in both Paypal and my S2Member settings (both were set to on) for testing purposes.

The Paypal buttons to buy level 1 access both work now, but the the buttons for Subscription Modifications still do not. Sometimes I get the captcha (sometimes I don’t) but it always lands on an error page: Things don’t appear to be working at the moment. Please try again later.

No EWP in the url any more though. Most recent one: https://www.paypal.com/cgi-bin/webscr?cHJwPXJwdA=

[s2Member-PayPal-Button modify=“1” level=“1” ccaps="" desc=“dev” ps=“paypal” lc="" cc=“USD” dg=“0” ns=“1” custom=“s2member.com” ta=“0” tp=“0” tt=“D” ra=“30” rp=“1” rt=“Y” rr=“1” rrt="" rra=“1” image=“default” output=“button” /]

I need members to be able to join for free then upgrade to a paid account. It is my understanding the only way to do that is through the Subscription Modification buttons.

Not really. They can register for free, and then pay for level 1. It’s not a modification, there was no subscription yet.

By the way, the custom attribute’s value is wrong, it has to be your site’s domain name, not s2Member’s.

So why can’t you use only the shortcode instead of the PayPal code? Just curious. If you use the shortcode, then encryption is okay -and actually better- to use.

Thanks. That makes sense (modification vs registration).

Just to be clear, if I am registered as a free subscriber (level 0), and I go through the PayPal button to pay for a level 1 subscription, my account will reflect the changes once the transaction is done?

I can’t really test it I don’t think …

Thanks again for all your help.

PS the custom url I only changed for privacy :slight_smile:

Correct. If you’re logged into your account when you load the page with the button, then your account will be referenced in the transaction, and after payment, s2Member will know to upgrade the account with the newly paid access.

For this reason, put the payment button in a page protected with Level 0, or the Login Welcome Page, which require the person to be logged in.

Does that make sense? :slight_smile:

Yep. Thanks so much.

1 Like