Tips and Tricks HQ Support Portal › Forums › WP eMember › eMember – Can I integrate this with Warrior Plus system?
Tagged: estore integration
- This topic has 12 replies, 5 voices, and was last updated 9 years, 10 months ago by admin.
-
AuthorPosts
-
April 20, 2012 at 4:19 am #6133kengperapolMember
I want to integrate emember with warriorplus system. How can I do this?
April 21, 2012 at 12:27 am #44257adminKeymasterWe don’t have a feature that integrates directly with Warriorplus system but I know that there are a few users who are using the following mechanism to get this working:
1) WSO Pro lets you “Forward Paypal IPN data to your own server”. So you specify it to forward the IPN to eMember’s IPN handling script.
2) eMember has PayPal integration explained on this document:
3) As long as eMember receives the PayPal IPN and it gets the value it needs in the “custom” field (see the documentation from point#2 for details) it will work.
October 15, 2012 at 10:06 am #44258songaMemberHey there, I’m exactly trying to do this but here’s the problem: How can I add the needed “custom” field? WSO Pro uses a personal Button to track sales, so there’s no way to change that custom field inside Paypal
I think I’d need to use a custom script, is there any chance you could provide something like that?
By the way, I really believe that if you could come up with an easy integration of eStore or eMember with WSO Pro and JVZoo, it could sell extremely well inside the WSO Forum at [http://www.warriorforum.com/warrior-special-offers-forum/]
Here’s a script I found inside the s2Member forum, but I don’t know if it would work.
Regarding that central IPN example file…
you might transform it a bit and do something like this.
1. Configure the top of this file (as seen below).
2. Upload this file to your server.
3. Configure your 3rd party integration to forward IPNs to this script.
Result… this script will receive IPNs being forwarded from your 3rd party integration. This script modifies important variables such as “custom” and “item_number” to a format that s2Member can understand. This script will then forward the IPN again (after having modified it a bit), over to your actual s2Member installation.
<?php
/*---- Configuration.
*/
/* s2Member installation domain. */
$config["custom"] = "www.mydomain.com";
/* s2Member Membership Level# */
$config["item_number"] = "1";
/* s2Member Proxy IPN URL handler. */
$config["proxy_ipn_handler_url"] = /* You'll get this from Dashboard: <code>s2Member -> PayPal Options -> IPN Integration -> Proxy IPN URL</code>. */
"http://www.mydomain.com/?s2member_paypal_notify=1&s2member_paypal_proxy=proxy&s2member_paypal_proxy_verification=c28831a2ddfdeexXX2f8b722efa0";
/*
---- Do NOT edit anything below, unless you know what you're doing.
*/
@ignore_user_abort(true);
header("HTTP/1.0 200 OK");
header("Content-Type: text/plain; charset=utf-8");
eval /* Clean buffers. */('while (@ob_end_clean ());');
if( /* No <code></code>$_POST<code></code> vars? */empty($_POST) || !is_array($_POST))
exit /* Exit now. There is nothing to process. */();
$_p = (get_magic_quotes_gpc()) ? stripslashes_deep($_POST) : $_POST;
$_p = trim_deep /* Now trim this array deeply. */($_p);
$_paypal_ipn_server_ip = $_ip = /* Forge IP address to match the PayPal® IPN server here. */ "216.113.188.202";
/* See list of IPs here: <https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/howto_api_golivechecklist>. */
$_p["custom"] = $config["custom"]; $_p["item_number"] = $config["item_number"];
echo (trim(curlpsr($config["proxy_ipn_handler_url"], http_build_query($_p, null, "&"), 20, 20, array("REMOTE_ADDR: ".$_ip, "HTTP_X_FORWARDED_FOR: ".$_ip))));
unset($_paypal_ipn_server_ip, $_ip);
/*
---- Do NOT edit anything below, unless you know what you're doing.
*/
function trim_deep($value = FALSE)
{
return is_array($value) ? array_map("trim_deep", $value) : trim((string)$value);
}
function stripslashes_deep($value = FALSE)
{
return is_array($value) ? array_map("stripslashes_deep", $value) : stripslashes((string)$value);
}
function curlpsr($url = FALSE, $post_vars = array(), $max_con_secs = 20, $max_stream_secs = 20, $headers = array())
{
if(($url = trim($url)) && ($curl = curl_init()))
{
if /* Because cURL can't deal with complex arrays. */(is_array($post_vars))
$post_vars = http_build_query($post_vars);
$follow = (!ini_get("safe_mode") && !ini_get("open_basedir"));
curl_setopt_array($curl, array(CURLOPT_URL => $url, CURLOPT_POST => true, CURLOPT_CONNECTTIMEOUT => $max_con_secs, CURLOPT_TIMEOUT => $max_stream_secs, CURLOPT_HEADER => false, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => $headers, CURLOPT_POSTFIELDS => $post_vars, CURLOPT_FOLLOWLOCATION => $follow, CURLOPT_MAXREDIRS => (($follow) ? 5 : 0), CURLOPT_ENCODING => "", CURLOPT_VERBOSE => false, CURLOPT_FAILONERROR => true, CURLOPT_FORBID_REUSE => true, CURLOPT_SSL_VERIFYPEER => false));
$o = trim(curl_exec($curl));
curl_close($curl);
}
return (!empty($o)) ? $o : false;
}
?>October 16, 2012 at 6:34 am #44259adminKeymasterDo you have a link to a documentation where they explain how a WSO button is created or something like that?
How is the PayPal purchase button gets created with you use it with WSO? Do you use a PayPal hosted button?
October 17, 2012 at 8:19 pm #44260songaMemberHi there,
here’s the only documentation I’ve found (regarding WSO Pro):
[http://warriorplus.com/support/]
I’ve upload an image of where you edit your listing here:
You use a button provided by WSO Pro that automatically embeds a Buy Now Paypal Button.
[http://imgur.com/5nVP0]
—
The other really popular merchant/affiliate platform is JVZoo.com
A product/membership delivery system that integrates seamlessly with these platforms is really needed for WSO/product sellers!
October 19, 2012 at 4:57 am #44261adminKeymasterThank you. That doesn’t actually have any info on how a 3rd party solution can be integrated with that system. Can you ask them the following question which might produce a better resource:
Is there any developer documentation available for WSO Pro so it can be integrated with a 3rd party solution?
Its okay if they have no documentation like that. I think I have an idea of how this can be done but it would be good to read their developer documentation first.
Does JVZoo have an IPN forwarding feature like WSO Pro?
November 12, 2012 at 5:41 pm #44262bambizMemberThis would be fire if you integrated into wso’s. I’m trying to find an easy solution and there is none. You would sell THOUSANDS of extra copies of this plugin if your checkout software/affiliate software could integrate.
November 13, 2012 at 5:06 am #44263adminKeymasterI am keen to do this too. Just lacking some good documentation from WSO regarding 3rd party integration.
You basically want to create a member/user account on your site using eMember when the user purchase using the WSO PayPal button correct?
November 13, 2012 at 2:49 pm #44264bambizMemberYes, create a member and deliver any required information to wso pro. It would be better to integrate a solution where the member would be removed if they quit paying the monthly fee and communicate any commissions to the wso pro solution.
i don’t know if this will help you but i got this from wso pro’s site.
[http://www.warriorplus.com/]
In Help desk area>
*Advanced topic, for advanced users only
The IPN system for the Adaptive Payments System is entirely different from the Standard Payment IPN structure. Any script that may have worked with the Standard system will not work with the Adaptive Payments.
You can find the current incarnation of the IPN variables in the following article:
IMPORTANT: These variable are in the process of being changed. At this point, it is wisest to not use more just the transaction ID and email address. When the IPN system becomes more robust, another knowledge base article will be going up detailing the new changes.
July 20, 2014 at 12:24 pm #44265standfast999MemberIs there any documentation on how to add a customer to estore form WSO Pro. WSO Pro will post the Paypal IPN data to a script on the server that has estore installed. The only reason we need this is to store the paypal transaction ID and send out the post purchase process.
Any information to code the script would be appreciated!
July 20, 2014 at 11:45 pm #44266adminKeymasterIf you can tell that system to forward the IPN then forward it to the following URL so estore can process it:
your-domain.com/?estore_pp_ipn=process
How will the item_number value look like? Will you be able to match that with your corresponding estore product ID?
January 7, 2015 at 1:19 am #44267standfast999MemberHi
It looks like WSO will send product info in message
Variables sent to your IPN processing script (Current Version: 0.1)
Whenever a sale is made, refunded or reversed, Warrior Payments will send a FORM POST message to the IPN notification URL specified for your product.
The message will contain the EXACT response we receive from the PayPal GetTransactionDetails API call.
We will also send over extra Warrior Payments product related fields in the IPN message.
Do we need to process this or can we use the product IDs in estore to configure the WSO ?
Here is the wso link: [https://payments.warriorforum.com/faq/key_gen]
Thank You
January 7, 2015 at 10:28 pm #44268adminKeymasterYes, you will need to process the notification if you want the customer data from that transaction to go into eStore.
I can maybe create a custom addon for you to handle that WSO notification. Use the following form if you are interested:
-
AuthorPosts
- You must be logged in to reply to this topic.