s2member
s2member copied to clipboard
Feature Request: Gravity Forms Integration
EXPLANATION OF THE ISSUE
s2Member and Gravity Forms work well together for free User Registration. It would be great if there were an integration to allow the use of Gravity Forms instead of s2Member Pro-Forms for payment gateway registrations as well.
This would be really great if GF could detect S2 levels/custom capabilites, however I believe that would need updated with the Gravity Forms add on plugin you use for adding members.
If you have S2 Member Pro then you can use a Gravity Form along with GF Zapier extension - send the data to Zapier from the form, and then use a web hook to send data back to S2Member to add the user remotely.
http://s2member.com/kb-article/pro-api-for-remote-operations/ http://s2member.com/kb-article/can-s2member-be-integrated-with-another-unsupported-payment-gateway-that-i-prefer/
I didn't see any documentation about creating a URL for the web hook but I know it can be done because I use a forked version of S2 and from my understanding all the API stuff is similar.
Probably would look something like this:
http://YOURDOMAIN.com?s2memember_pro_remote_op_integration=1&op=create_user&api_key=YOUR-PRO-API-KEY&data[s2member_level]=1&data[s2member_ccaps]=CUSTOM_CAPABILITY&data[user_email]=INSERT GRAVITY FORMS DATA&data[user_login]=INSERT GRAVITY FORMS DATA&data[notification]=1
Here is a breakdown of what this all means: &api_key=YOUR-PRO-API-KEY = your S2Member Pro API Key which can be found under "S2m3mber > API Scripting > API Key for remote operations"
&data[s2member_level]=1 ---- this is the membership level
&data[s2member_ccaps]= ---- this is the custom capability
&data[user_email]=INSERT GRAVITY FORMS DATA ---- best to use email address
&data[user_login]=INSERT GRAVITY FORMS DATA ---- best to use email address as user name
&data[notification]=1 ---- this pushes out the email to customer with their user/pass link
Hopefully this is all the same with S2member as the plugin I use.
I would suggest checking the ?s2memember_pro_remote_op_integration=1 part of the URL above as it might be different (I just replaced with s2member instead of the name of the plugin I use but could possibly be differernt from that).
Maybe @jaswsinc can chime in on this.
Hope that helps!
Kevin
Wow, that would be great indeed. In the meanwhile I would like to know how this can be done through Zapier (code examples?)
There is not really any code that would be required. If you are using Gravity forms, use the zapier integration they have, and then when creating the zap, use Gravity forms and Web Hook - then use the URL above in the web hook area. Should work fine.
While I love Zapier for integrations, it sometimes breaks when webhost issues arise. Having everything self-contained in the site (i.e., with an S2Member add-on for Gravity Forms) then the form would leverage it simultaneously with payment gateway add-ons (e.g., Stripe).
Plus, when sending a confirmation to someone who paid to register, the confirmation can be set to only register that user upon successful payment completion. Without an add-on, custom functions have to be written for post processing which puts it out of reach for intermediate and lower site owners/managers/webmasters.
When patdumond mentioned that GF and S2Member work well together for free registration he was correct. But what is really needed is full integration. For example, S2Member custom profile fields are an array so GF's User Registration add-on cannot map directly to those fields and populate them after submission unless a custom function is written. THAT ALONE would make an add-on (which would enable that capability) a huge success IMHO.
I want to second the request for the full integration. I have a very sexy registration form utilizing gravity forms and buddy press, but I need the EOT functionality from s2member for expiring annual memberships. I love that gravity forms will add members to my mailchimp, notify us of new members on our slack channel, etc.
But I really want a clean way to have 1 form for individual members ships, one form for corporate members and it all to utilize s2member while integrating with both buddy press and GF.
Am I overcomplicating things or is there a sexy way to do this.
Form: http://www.ad2tampabay.org/members/join
I'll third it. I'm on my third attempt to integrate these two cleanly (this thread might lead me in the right direction finally) and a simple way to hook GF forms to S@ would be amazing. I'm thinking it wouldn't be too difficult via GF's Confirmation redirect?
Yes! and I'll be happy to pay 100 euros a year for a premium solution as well...
Adding my vote to this feature!