Hello, I am new here, s2member beginner and hope you can help me.
My problem: I am using ProVersion, I have set the PayPal setting including the token, but after paying via PayPal I get the error: “[ mitglieder.beratung-ferg.de ] sagt… ERROR: New features cannot be added. Please contact support for assistance. Missing user/member data. Back to main page”.
Could the reason that I still only get the standard PayPal button? As soon as I change my shortcode from … PayPal button to … Pro-PayPal button, only text appears in the Elementor shortcode widget and the PayPal button disappears. My shortcode is as follows: [s2Member-Pro-PayPal-Button level=“1” ccaps=“kurs1” desc=“Test” ps=“paypal” lc="" cc=“EUR” dg=“0” ns=“1” custom=“mitglieder.beratung-ferg.de” ra=“0.01” rp=“1” rt=“L” rr=“BN” image=“default” output=“button” success=“https://mitglieder.beratung-ferg.de/hf-danke”].
Both plugins are in the latest version. Both is correct in the wp-content directory. I don’t use cache plugins that could cause additional problems. Before payment, a ProForms registration for payment, a recommendation because I don’t use PayPalPro, but a business account. The registration of the client has confirmed, but he not receive data. I test it with 0,01 EUR in real time. What could be the problem? Please let me know, if you need more information from me. Thank you and best regards.
Shortcode Pro-PayPal does not work despite proVersion
Hallo Heike, willkommen!
There isn’t a s2Member-Pro-PayPal-Button
… If you have s2Member Pro, you could try the pro-form s2Member-Pro-PayPal-Form
, create one from here: WP admin > s2Member Pro > PayPal Pro-Forms
You don’t need PayPal Pro for it, the PayPal Business account is enough. The “Pro” in pro-form is for s2Member Pro. Yes, PayPal Pro is supported, but not required.
Try it and let me know how it goes.
Hello, thank you very much for the quick response! Perhaps I have expressed myself somewhat incomprehensibly. Let me explain it in more detail from the beginning:
I use Paypal Standard because I don’t need a pro version of Paypal.
I currently have the two S2member versions.
To write customer invoices I use the 2-step process:
The pro forms form for the billing address data request.
Then I redirect to a payment page where my Paypal button is located (Elementor, shortcode widget inserted).
If I generate a shortcode in the backend via Paypal buttons without inserting my own thank you page, without first using the additional registration form for the address query and without changing the shortcode, then this triggers the payment process in Paypal itself correctly. However, you will then end up on this error page:
[ mitglieder.beratung-ferg.de ] says…
ERROR: New functions cannot be added.
Please contact support for assistance.
Missing user/member details. - Back to main page -
The customer is not created in the system. No payment confirmation emails are sent to either the customer or myself.
So I asked the clever AI for help and they wrote that I have to change the shortcode as described in my last request, but only text comes up and the further information from the AI referred to error source elimination because WordPress supposedly cannot process this shortcode. Since I’m always going round in circles with this, I’ve now found the forum and hope that they can help me further.
By the way, this would be the original button from the backend without any changes: [s2Member-PayPal-Button level=“*” ccaps=“kurs1” desc="Description and pricing details here.” ps=“paypal” lc=“” cc=“EUR” dg=“0” ns=“1” custom=“mitglieder.beratung-ferg.de” ra=“0.01” rp=“1” rt=“L” rr=“BN” image=“default” output=“button” /]
Best regards
Thanks for the additional details! I’m not quite sure what that “New functions cannot be added” error is, it’s not in s2Member, but we’ll figure this out.
I use Paypal Standard because I don’t need a pro version of Paypal.
That’s perfectly fine.
The pro forms form for the billing address data request.
Then I redirect to a payment page where my Paypal button is located
You can use a pro-form for payment without PayPal Pro. The pro-form also works with your PayPal Business account. You can have the payment pro-form after the user registered and logged in, or you can have the registration pro-form also take the payment (paid signup).
By the way, this would be the original button from the backend without any changes
That one worked fine, right? And you want to add the success redirection? Then…
[s2Member-PayPal-Button level=“*” ccaps=“kurs1” desc="Description and pricing details here.” ps=“paypal” lc=“” cc=“EUR” dg=“0” ns=“1” custom=“mitglieder.beratung-ferg.de” ra=“0.01” rp=“1” rt=“L” rr=“BN” image=“default” output=“button” success=“https://mitglieder.beratung-ferg.de/hf-danke” /]
Also, while you get things set up, it’d be good that you keep logging enabled to help troubleshoot if needed. WP Admin > s2Member Pro > Log Files
Hello Christian,
I am very glad that you are supporting me.
By the way: I don’t want to use the registration Pro-Form including the Paypal button because there are also other means of payment and the text asking for credit card details. I only offer Paypal.
Now I have activated 2 x yes at LogFiles and inserted your shortcode.
Greetings Heike
Now I have activated 2 x yes at LogFiles and inserted your shortcode.
Good
By the way: I don’t want to use the registration Pro-Form including the Paypal button because there are also other means of payment and the text asking for credit card details. I only offer Paypal.
You can change the shortcode to accept="paypal" accept_via_paypal="paypal"
WP admin > s2Member Pro > PayPal Pro-Forms > Shortcode Attributes Explained
Something like this:
[s2Member-Pro-PayPal-Form level="1" ccaps="kurs1" desc="Test" ps="paypal" lc="" cc="EUR" dg="0" ns="1" custom="mitglieder.beratung-ferg.de" ta="0" tp="0" tt="D" ra="0.01" rp="1" rt="L" rr="BN" rrt="" rra="2" accept="paypal" accept_via_paypal="paypal" coupon="" accept_coupons="0" default_country_code="" captcha="0" success=“https://mitglieder.beratung-ferg.de/hf-danke” /]
I am very glad that you are supporting me.
Hello Cristián,
I have added your shortcode to my payment page:
[s2Member-PayPal-Button level=“*” ccaps=“kurs1” desc="Description and price details here.” ps=“paypal” lc=“” cc=“EUR” dg=“0” ns=“1” custom=“mitglieder.beratung-ferg.de” ra=“0.01” rp=“1” rt=“L” rr=“BN” image=“default” output=“button” success=“https://mitglieder.beratung-ferg.de/hf-danke” /]
The Button is now here and I have tested it in the private window, but the error message appears again: …ERROR: New functions cannot be added. Please contact support for assistance. Missing user/member details. - Back to main page -
And I entered the second shortcode for the modified pro form on my registration page:
[s2Member-Pro-PayPal-Form
level="1” ccaps="course1” desc="test” ps=“paypal” lc=”” cc="EUR” dg="0”ns="1” custom="mitglieder.beratung-ferg.de” ta="0” tp="0” tt="D” ra="0.01” rp="1” rt="L” rr=“BN” rrt=”” rra="2” accept="paypal” accept_via_paypal=“paypal” coupon=”” accept_coupons=“0” default_country_code=”” captcha="0” success="https://mitglieder.beratung-ferg.de/hf-danke” /]
only text and no form is displayed.
Many thanks for the tip: Shortcode attributes explained .
I hope we find the errors .
Best regards
Thank you for trying those and the update.
What do the logs say? Any entries related to those test payment attempts? WP Admin > s2Member Pro > Log Files
Did you verify that your s2Member-PayPal configuration is complete and correct? WP Admin > s2Member Pro > PayPal Options
- PayPal Account Details
- PayPal IPN Integration
- PayPal PDT/Auto-Return Integration
Would it be possible for me to take a look and try some tests on your staging site? If you agree, please send me an admin login to email: support at wpsharks.com.
Hello Cristián,
yes, the PayPal options mail address, IPN integration, PDT/Auto-Return integration (…?s2member_paypal_return=1) are all set including the identity token.
The log files are now filled. I have sent you an admin login by e-mail.
Thank you very much for your effort .
Best regards
Thanks! I was able to login.
I’ve been reviewing the site, and found some pages with s2Member shortcodes. The pro-form that isn’t being parsed, did you try it in a page by itself? There shouldn’t be two pro-forms on the same page, they normally would be parsed, but won’t work well.
I see in the gateway-core-rtn.log an entry with the error you mention. It’s weird, because the buttons I see in the pages, the ones created with the s2Member shortcode, seem to have the required value… I see the wrong variable and value in the log, that’s why it’s not validating. Could you tell me which button you used for that test?
When the user is logged in, his user ID is referenced so that his account gets updated, but this value is not where it should in the logs, something’s putting it in the wrong place…
Oh, I see, that field has the “Originating Domain” when the user is not logged in, and “Referencing Customer ID” when the user is logged in. Could it be that you are trying to buy the custom capability as a guest? Independent custom capabilities (meaning without the level) can only be sold to logged in users. This button/pro-form for independent capabilities should only be shown to logged in users (either the page requires Level 0, or use a conditional like s2If).
Could you log in as a regular user (not adminisitrator) and try the button again? Let me know how it goes.
Hello Cristián,
Point 1:
“I looked at the site and found some pages with s2member shortcodes. Have you tried the pro form that is not parsed on a separate page? There shouldn’t be two pro forms on the same page, they would normally be parsed but not work well.”
I have on the page “Course1 - Registration before payment” now again only 1 form for registration, the second shortcode, where only text came - I deleted again, so that nothing is duplicated.
Point 2:
“Oh, I see, this field has the originating domain when the user is not logged in, and the reference customer ID when the user is logged in. Could it be that you are trying to purchase the custom capability as a guest? Independent custom capabilities (i.e. without the layer) can only be sold to logged in users. This button/form for independent capabilities should only be shown to logged in users (either the page requires level 0 or a condition like s2If is used)!”
I have adapted the shortcode on the /kurs1-zahlung page, I hope this is correct:
[s2If current_user_can(access_s2member_level0)]
[s2Member-PayPal-Button level=“0” ccaps=“kurs1” desc=“Beschreibung und Preisdetails hier.” ps=“paypal” lc="" cc=“EUR” dg=“0” ns=“1” custom=“mitglieder.beratung-ferg.de” ra=“0.01” rp=“1” rt=“L” rr=“BN” image=“default” output=“button” success=“https://mitglieder.beratung-ferg.de/hf-danke” /]
[/s2If]
[s2If !current_user_can(access_s2member_level0)]
Bitte loggen Sie sich ein, um diesen Kurs zu kaufen.
[/s2If]
I have also set level=“0” for the shortcode in the registration form. I hope that’s ok too?
Now I have proceeded as follows:
Version A:
After deleting the Ferg-Pipi user again, I accessed my /hf-pakete-courses-membership-options page via private mode and clicked on the Book course button for course 1 and was redirected to /course1-registration-pre-payment. There I registered as user FergPipi. After submitting the registration form, however, I was redirected back to the hf-pakete-kurse-mitgliedschaftsoptionen page. However, the user was created.
Version B:
I then deleted the user again and went back to the /course1-registration-pre-payment page via the WP backend, logged in as admin in the preview. There I registered as user FergPipi. After submitting the registration form, I was redirected to the /kurs1-payment page - as expected - and from there to my PayPal account. After I paid, I got this error:
Error: Unexpected txn_type/status.
The txn_type/status does not meet the requirements.
Please contact support for assistance.
Point Pro Form:
I have also created a new page “Test s2M Shortcode ProForm” and entered this shortcode there:
level="1” ccaps="course1” desc="test” ps=“paypal” lc=”” cc="EUR” dg="0” ns="1” custom="mitglieder.beratung-ferg.de” ta="0” tp="0” tt="D” ra="0.01” rp="1” rt="L” rr=“BN” rrt=”” rra="2” accept="paypal” accept_via_paypal=“paypal” coupon=”” accept_coupons=“0” default_country_code=”” captcha="0” success="https://mitglieder.beratung-ferg.de/hf-danke” /]
The form is displayed, but there are still the buttons for credit card etc. as well as the request for credit card payment - I can’t use that because I only offer PayPal payment. And there is also a cheap address. I also get the message Invalid form Configuration. Missing “desc” attribute. Please provide a Descrpiton for this form.
If it does not restrict the functions, I would work with the customized form on course1-registration-before-payment, that would be enough for me.
I look forward to further instructions from you.
Best regards
Heike
Great progress, Heike! You learn fast.
I found the page but can’t open it as a guest, I guess it’s not published yet (I don’t know enough German to know what the admin settings say heh). Is it alright for me to publish the page to test and see?
I checked the log and am studying why you could be getting that message. That’s the default scenario after s2 could find a matching txn_type, but the one in the log should have been picked up, so I’m studying the code to see what else could be missing that cause it to skip…
I see that these pages don’t seem to be published, you’re using the previews… Which means you’re seeing them as the admin, which isn’t the right way to test the payments, because s2Member will not edit an administrator’s account (you could lose the admin role if it did).
The right way to test them is to publish the page, and then open it as a guest, or as the regular user. Did you test that? If not, please do and let me know how it goes.
And if you publish a page for the tests, please let me know which one so I can try it.
I studied the conditionals, and the item_number field doesn’t validate any of the different checks, because it’s not expecting a payment for level 0. So when selling the custom capabilities without a level, leave the level with an asterisk.
If you want to sell the ccap to a new signup, someone that’s creating his account and paying for the ccap at the same time, then use level 1. It’s fine to sell level one with the different ccaps of the courses. You’re selling with a single payment for lifetime access, so there’s no complication with EOT (end of term) for separate ccaps.
Try your test with the level fix and see if the log gives the same error again, please.
Hello Cristián,
I deleted the user again before the new test run.
Since I want to sell course1 without level authorization, I have now - on your recommendation - set level * in the shortcode.
Very strage - is what happened:
First I had 2 x a security error in the recaptcha image selection. Mind you, not an image selection error, which would have been displayed, but a security error. On the third attempt, I got to the page that was supposed to contain the button with the express payment (is also displayed in the page preview in the admin area). The button was not there and so I could not pay.
Now here’s the strange thing: the user was still created with Kurs1 - without me being redirected to PayPal (system error was reported to PayPal).
I also took another look at your last reply.
Both mitglieder.beratung-ferg.de/kurs1-registrierung and mitglieder.beratung-ferg.de/zahlung were and are still set to published. When I call up both pages without being logged in, the Express Paypal button is also missing on the payment page. Very strange, as it is visible in the admin preview as I said.
Does that help us?
What I also don’t quite understand is that you can’t access the pages when they are public and I can also access them when I’m not logged in, i.e. don’t have s2member open.
It remains exciting
It remains exciting
Yes
Okay, last time I couldn’t do test purchases. Are you okay with me doing some tests registrations/payments? What page can I use for that, or can I publish a page for that myself? I need a published page, not draft. Is that okay with you?
Let me see if I understand correctly: you want to allow free registrations, and then sell them the Kurs 1 with a ccap, is that correct? You don’t want to sell to guests, first they have to register and login, correct?
Once you give me the go-ahead I’ll do a few tests and report back.
Hi Cristián!
Let me play through the scenario from the beginning:
My main site is beratung-ferg.de, which contains a Woocommerce store.
There I offer all
courses 1-4 (duration 2-4 weeks) and level 1-3 (duration 8-12 weeks).
In addition, free mini-courses are to be offered (duration also varies) which I have not yet entered there.
If someone is interested in such an offer, they should click through to the members area on a freely accessible page where they can see a complete list for advertising purposes. This should be a page without a required login in the member area, if that is possible.
As soon as someone clicks to buy a course or level in the members’ area, they should register, regardless of whether they are free or have to pay, so that we can send them a newsletter and an invoice if necessary. That would then automatically be level 0.
Levels 2 and 3 cannot be booked immediately because they require a reservation. I have to create an extra package page for this, the link to which I then send to the customer manually.
If someone has purchased a paid or free course/level, I would like to send them to their personal start page again and again after logging in, where all courses appear for advertising purposes. Now he should also be able to buy all courses, including the free courses, as a registered user.
The simplest solution would be:
On my main page beratung-ferg.de in the WooCommerce store:
-
Click the buy button
-
pay via PayPal
-
automatic invoice
-
automatic newsletter registration
-
automatic course activation (with weekly activation). However, S2Member cannot recognize this as far as I am informed.
So the customer must first be linked directly to the S2Member area in the purchase button in order to make the respective purchases or buy free courses there.
In order to be able to create the invoice manually, I first need the registration form for the paid courses/levels. Then I have to write the invoice manually and activate a manual newsletter registration (unless this can be done via Brevo somehow).
But since S2Member doesn’t recognize this automatically and can’t unlock the courses + levels, as far as I know, I want to solve it this way. If there is a better alternative, I am of course open to it.
I hope I have expressed myself more clearly. Every now and then I also fail with my translation tool.
And I still don’t understand which of the pages is in draft.
And yes, you can move around freely in the member area and create any pages you like. The main thing is that it works!
Thank you very very much.
Best regards
Thanks for the explanation and permission.
Okay, I went ahead and found a draft page with your pro-form test. I saw in Elementor that it mentioned the desc attribute was wrong, which was odd because it looked fine in the shortcode… I published the page and I got that on the page as well.
After trying different things, I finally switched to the wordpress editor, eventually switched from the visual editor to the code one, and there I saw something odd.
[s2Member-Pro-PayPal-Form level="1” ccaps="course1” desc="test paypal buynow 1cent lifetime access” ps="paypal” lc="” cc="EUR” dg="0”ns="1” custom="mitglieder.beratung-ferg.de” ta="0” tp="0” tt="D” ra="0.01” rp="1” rt="L” rr="BN” rrt="” rra="2” accept="paypal” accept_via_paypal="paypal” coupon="” accept_coupons="0” default_country_code="” captcha="0” success="https://mitglieder.beratung-ferg.de/hf-danke” /]
It’s not so obvious there, but the closing quotes are not right. Went to my own code editor, and confirmed it. With syntax highlighting it’s a bit more clear:
[s2Member-Pro-PayPal-Form level="1” ccaps="course1” desc="test paypal buynow 1cent lifetime access” ps="paypal” lc="” cc="EUR” dg="0”ns="1” custom="mitglieder.beratung-ferg.de” ta="0” tp="0” tt="D” ra="0.01” rp="1” rt="L” rr="BN” rrt="” rra="2” accept="paypal” accept_via_paypal="paypal” coupon="” accept_coupons="0” default_country_code="” captcha="0” success="https://mitglieder.beratung-ferg.de/hf-danke” /]
I don’t know if it was the Elementor editor, or some other place you pasted the shortcode in before that, but it corrupted the quotes, messing up the shortcode attributes and their values. Once fixed, it looks like this:
[s2Member-Pro-PayPal-Form level="1" ccaps="course1" desc="test paypal buynow 1cent lifetime access" ps="paypal" lc="" cc="EUR" dg="0"ns="1" custom="mitglieder.beratung-ferg.de" ta="0" tp="0" tt="D" ra="0.01" rp="1" rt="L" rr="BN" rrt="" rra="2" accept="paypal" accept_via_paypal="paypal" coupon="" accept_coupons="0" default_country_code="" captcha="0" success="https://mitglieder.beratung-ferg.de/hf-danke" /]
And it doesn’t show the error on the page anymore, it now shows the description.
I then loaded the page in a separate browser session as a guest, and signed up, got taken to paypal and paid, and got taken back to the thank-you page.
I also got the emails, so everything seems in order.
I think you can take it from here now that you know what’s been messing with that test! But feel free to ask me if you have more questions, or if there are any specific tests you’d like me to try.
Hi Cristián!
I changed it accordingly and it actually worked. Thanks a million for that.
However, the form is displayed incorrectly in the Elementor editor and only appears correctly in the preview, which is quite confusing. Have I overlooked something here?
Best regards
Thanks for the update! Making progress!
I’m not sure why it wouldn’t show correctly in Elementor, I didn’t go back to test again after fixing the quotes… Let me try that now…
I went to edit the test page that was showing the pro-form correctly, then switched to the Elementor editor, and there the preview showed the “invalid form configuration” message at the top of the pro-form. I checked the shortcode and it had the wrong quotes again, I don’t know if Elementor messed them up again or if it kept a copy of the older one instead of using the one I had fixed in the Classic editor. I tried pasting the fixed shortcode in the Elementor editor, and now the preview is not showing the error message.
The form itself is not showing the fields correctly, but that’d be because s2Member’s javascript for the pro-form is not being loaded, since that’d be on the front side when viewing the page, no on admin side with the editor. The pro-form needs the JS to display and work correctly. Just keep that in mind when editing in Elementor and remember to preview the page to see what it’s actually like.