Community Support Forums — WordPress® ( Users Helping Users ) — 2011-12-20T09:52:02-05:00 http://www.primothemes.com/forums/feed.php?f=40&t=13250 2011-12-20T09:52:02-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13250&p=58009#p58009 <![CDATA[s2Member v111220 / Source Code: s2member-p...]]>
s2Member v111220
Source Code: s2member-pro\includes\classes\gateways\paypal\paypal-cancellation-in.inc.php
Docs updated: December 20, 2011, 9:52 am

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — December 20th, 2011, 9:52 am


]]>
2011-12-07T01:05:16-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13250&p=55691#p55691 <![CDATA[s2Member v111206 / Source Code: s2member-p...]]>
s2Member v111206
Source Code: s2member-pro\includes\classes\gateways\paypal\paypal-cancellation-in.inc.php
Docs updated: December 7, 2011, 1:05 am

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — December 7th, 2011, 1:05 am


]]>
2011-11-05T19:27:53-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13250&p=52065#p52065 <![CDATA[s2Member v111105 / Source Code: s2member-p...]]>
s2Member v111105
Source Code: s2member-pro\includes\classes\gateways\paypal\paypal-cancellation-in.inc.php
Docs updated: November 5, 2011, 8:27 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — November 5th, 2011, 7:27 pm


]]>
2011-10-29T20:37:16-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13250&p=50161#p50161 <![CDATA[s2Member v111029 / Source Code: s2member-p...]]>
s2Member v111029
Source Code: s2member-pro\includes\classes\gateways\paypal\paypal-cancellation-in.inc.php
Docs updated: October 29, 2011, 9:37 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — October 29th, 2011, 8:37 pm


]]>
2011-10-17T15:41:42-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13250&p=47955#p47955 <![CDATA[s2Member v111017 / Source Code: s2member-p...]]>
s2Member v111017
Source Code: s2member-pro\includes\classes\gateways\paypal\paypal-cancellation-in.inc.php
Docs updated: October 17, 2011, 1:41 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — October 17th, 2011, 3:41 pm


]]>
2011-10-11T14:37:35-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13250&p=46357#p46357 <![CDATA[s2Member v111011 / Source Code: s2member-p...]]>
s2Member v111011
Source Code: s2member-pro\includes\classes\gateways\paypal\paypal-cancellation-in.inc.php
Docs updated: October 11, 2011, 12:37 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — October 11th, 2011, 2:37 pm


]]>
2011-10-03T15:49:59-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13250&p=44486#p44486 <![CDATA[s2Member v111003 / Source Code: s2member-p...]]>
s2Member v111003
Source Code: s2member-pro\includes\classes\gateways\paypal\paypal-cancellation-in.inc.php
Docs updated: October 3, 2011, 1:50 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — October 3rd, 2011, 3:49 pm


]]>
2011-10-03T03:43:42-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13250&p=43193#p43193 <![CDATA[s2Member v111002 / Source Code: s2member-p...]]>
s2Member v111002
Source Code: s2member-pro\includes\classes\gateways\paypal\paypal-cancellation-in.inc.php
Docs updated: October 3, 2011, 1:43 am

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — October 3rd, 2011, 3:43 am


]]>
2011-09-27T05:28:32-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13250&p=41435#p41435 <![CDATA[s2Member v110927 / Source Code: s2member-p...]]>
s2Member v110927
Source Code: s2member-pro\includes\classes\gateways\paypal\paypal-cancellation-in.inc.php
Docs updated: September 27, 2011, 3:28 am

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — September 27th, 2011, 5:28 am


]]>
2011-09-26T21:05:04-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13250&p=40191#p40191 <![CDATA[s2Member v110926 / Source Code: s2member-p...]]>
s2Member v110926
Source Code: s2member-pro\includes\classes\gateways\paypal\paypal-cancellation-in.inc.php
Docs updated: September 26, 2011, 7:05 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — September 26th, 2011, 9:05 pm


]]>
2011-09-17T17:04:18-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13250&p=38335#p38335 <![CDATA[s2Member v110915 / Source Code: s2member-p...]]>
s2Member v110915
Source Code: s2member-pro\includes\classes\gateways\paypal\paypal-cancellation-in.inc.php
Docs updated: September 17, 2011, 3:04 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — September 17th, 2011, 5:04 pm


]]>
2011-09-14T01:29:32-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13250&p=36913#p36913 <![CDATA[s2Member v110913 / Source Code: s2member-p...]]>
s2Member v110913
Source Code: s2member-pro\includes\classes\gateways\paypal\paypal-cancellation-in.inc.php
Docs updated: September 13, 2011, 11:29 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — September 14th, 2011, 1:29 am


]]>
2011-09-13T12:04:25-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13250&p=35641#p35641 <![CDATA[s2Member v110912 / Source Code: s2member-p...]]>
s2Member v110912
Source Code: s2member-pro\includes\classes\gateways\paypal\paypal-cancellation-in.inc.php
Docs updated: September 13, 2011, 10:04 am

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — September 13th, 2011, 12:04 pm


]]>
2011-08-15T15:17:28-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13250&p=31749#p31749 <![CDATA[s2Member v110815 / Source Code: s2member-p...]]>
s2Member v110815
Source Code: s2member-pro\includes\classes\gateways\paypal\paypal-cancellation-in.inc.php
Docs updated: August 15, 2011, 4:17 pm

Open for public discussion.
(!-- s-words :: --)Source Code Documentation Packages ( Overview ) Classes Deprecated Todo Index Source Code jQuery(window).load(function(){ if(typeof location.hash === 'string' && location.hash.match(/^#/)) jQuery('olli'+location.hash).addClass('hilite'); }); jQuery(window).bind('hashchange', function(){ if(typeof location.hash === 'string' && location.hash.match(/^#/)) jQuery('olli').removeClass('hilite'); jQuery('olli'+location.hash).addClass('hilite'); }); [ full view ]s2member-pro\includes\classes\gateways\paypal\paypal-cancellation-in.inc.php ?php /** * PayPal® Cancellation Forms ( inner processing routines ). * * Copyright: © 2009-2011 * {@link http://www.websharks-inc.com/ WebSharks, Inc.} * ( coded in the USA ) * * This WordPress® plugin ( s2Member Pro ) is comprised of two parts: * * o (1) Its PHP code is licensed under the GPL license, as is WordPress®. * You should have received a copy of the GNU General Public License, * along with this software. In the main directory, see: /licensing/ * If not, see: {@link http://www.gnu.org/licenses/}. * * o (2) All other parts of ( s2Member Pro ); including, but not limited to: * the CSS code, some JavaScript code, images, and design; * are licensed according to the license purchased. * See: {@link http://www.s2member.com/prices/} * * Unless you have our prior written consent, you must NOT directly or indirectly license, * sub-license, sell, resell, or provide for free; part (2) of the s2Member Pro Module; * or make an offer to do any of these things. All of these things are strictly * prohibited with part (2) of the s2Member Pro Module. * * Your purchase of s2Member Pro includes free lifetime upgrades via s2Member.com * ( i.e. new features, bug fixes, updates, improvements ); along with full access * to our video tutorial library: {@link http://www.s2member.com/videos/} * * @package s2Member\PayPal * @since 1.5 */ if ( realpath ( __FILE__ ) === realpath ( $_SERVER [ "SCRIPT_FILENAME" ] ) ) exit ( "Do not access this file directly." ) ; /**/ if ( ! class_exists ( "c_ws_plugin__s2member_pro_paypal_cancellation_in" ) ) { /** * PayPal® Cancellation Forms ( inner processing routines ). * * @package s2Member\PayPal * @since 1.5 */ class c_ws_plugin__s2member_pro_paypal_cancellation_in { /** * Handles processing of Pro Form cancellations. * * @package s2Member\PayPal * @since 1.5 * * @attaches-to ``add_action("init");`` * * @return null Or exits script execution after a custom URL redirection. */ public static function paypal_cancellation ( ) { if ( ! empty ( $_POST [ "s2member_pro_paypal_cancellation" ] [ "nonce" ] ) && ( $nonce = $_POST [ "s2member_pro_paypal_cancellation" ] [ "nonce" ] ) && wp_verify_nonce ( $nonce , "s2member-pro-paypal-cancellation" ) ) { $GLOBALS [ "ws_plugin__s2member_pro_paypal_cancellation_response" ] = array ( ) ; /* This holds the global response details. */ $global_response = & $GLOBALS [ "ws_plugin__s2member_pro_paypal_cancellation_response" ] ; /* This is a shorter reference. */ /**/ $post_vars = c_ws_plugin__s2member_utils_strings:: trim_deep ( stripslashes_deep ( $_POST [ "s2member_pro_paypal_cancellation" ] ) ) ; $post_vars [ "attr" ] = unserialize (c_ws_plugin__s2member_utils_encryption:: decrypt ( $post_vars [ "attr" ] ) ) ; /* And run a Filter. */ $post_vars [ "attr" ] = apply_filters ( "ws_plugin__s2member_pro_paypal_cancellation_post_attr" , $post_vars [ "attr" ] , get_defined_vars ( ) ) ; /**/ $post_vars [ "recaptcha_challenge_field" ] = ( ! $post_vars [ "recaptcha_challenge_field" ] ) ? trim ( stripslashes ( $_POST [ "recaptcha_challenge_field" ] ) ) : $post_vars [ "recaptcha_challenge_field" ] ; $post_vars [ "recaptcha_response_field" ] = ( ! $post_vars [ "recaptcha_response_field" ] ) ? trim ( stripslashes ( $_POST [ "recaptcha_response_field" ] ) ) : $post_vars [ "recaptcha_response_field" ] ; /**/ if ( !c_ws_plugin__s2member_pro_paypal_responses:: paypal_form_attr_validation_errors ( $post_vars [ "attr" ] ) ) /* Must NOT have any attr errors. */ { if ( ! ( $error = c_ws_plugin__s2member_pro_paypal_responses:: paypal_form_submission_validation_errors ( "cancellation" , $post_vars ) ) ) { if ( is_user_logged_in ( ) && is_object ( $user = wp_get_current_user ( ) ) && ( $user_id = $user - ID ) ) /* Are they logged in? */ { if ( ( $paypal = array ( "METHOD" = "GetRecurringPaymentsProfileDetails" ) ) && ( $paypal [ "PROFILEID" ] = $cur__subscr_id = get_user_option ( "s2member_subscr_id" ) ) ) { if ( ( $paypal = c_ws_plugin__s2member_paypal_utilities:: paypal_api_response ( $paypal ) ) && empty ( $paypal [ "__error" ] ) ) /* Have Subscription status? */ { if ( preg_match ( "/^(Active|ActiveProfile|Suspended|SuspendedProfile)$/i" , $paypal [ "STATUS" ] ) ) /* Possible? */ { if ( ! ( $ipn = array ( ) ) ) /* Build a simulated PayPal® IPN response. */ { $ipn [ "txn_type" ] = "subscr_cancel" ; $ipn [ "subscr_id" ] = $paypal [ "PROFILEID" ] ; $ipn [ "custom" ] = get_user_option ( "s2member_custom" ) ; /**/ $ipn [ "period1" ] = c_ws_plugin__s2member_paypal_utilities:: paypal_pro_period1 ( $paypal ) ; $ipn [ "period3" ] = c_ws_plugin__s2member_paypal_utilities:: paypal_pro_period3 ( $paypal ) ; /**/ $ipn [ "payer_email" ] = $paypal [ "EMAIL" ] ; $ipn [ "first_name" ] = $paypal [ "FIRSTNAME" ] ; $ipn [ "last_name" ] = $paypal [ "LASTNAME" ] ; /**/ $ipn [ "option_name1" ] = "Referencing Customer ID" ; $ipn [ "option_selection1" ] = $paypal [ "PROFILEID" ] ; /**/ $ipn [ "option_name2" ] = "Customer IP Address" ; /* IP Address. */ $ipn [ "option_selection2" ] = get_user_option ( "s2member_registration_ip" ) ; /**/ $ipn [ "item_name" ] = $paypal [ "DESC" ] ; $ipn [ "item_number" ] = c_ws_plugin__s2member_paypal_utilities:: paypal_pro_item_number ( $paypal ) ; /**/ $ipn_q = "&s2member_paypal_proxy=paypal&s2member_paypal_proxy_use=pro-emails" ; $ipn_q .= "&s2member_paypal_proxy_verification=" . urlencode (c_ws_plugin__s2member_paypal_utilities:: paypal_proxy_key_gen ( ) ) ; /**/ c_ws_plugin__s2member_utils_urls:: remote ( site_url ( "/?s2member_paypal_notify=1" . $ipn_q ) , $ipn , array ( "timeout" = 20 ) ) ; } /**/ if ( ( $paypal = array ( "METHOD" = "ManageRecurringPaymentsProfileStatus" , "ACTION" = "Cancel" , "PROFILEID" = $cur__subscr_id ) ) ) { c_ws_plugin__s2member_paypal_utilities:: paypal_api_response ( $paypal ) ; /**/ $global_response = array ( "response" = 'strongConfirmed./strong Your account has been cancelled. Billing terminated.' ) ; /**/ if ( $post_vars [ "attr" ] [ "success" ] && ( $custom_success_url = preg_replace ( "/%%response%%/i" , urlencode ( $global_response [ "response" ] ) , $post_vars [ "attr" ] [ "success" ] ) ) /**/ && wp_redirect (c_ws_plugin__s2member_pro_paypal_utilities:: paypal_s2p_v_generate ( $custom_success_url ) ) !== "nill" ) /* Also generate an s2p-v variable. */ exit ( ) ; } } else if ( preg_match ( "/^(Pending|PendingProfile)$/i" , $paypal [ "STATUS" ] ) ) /* Can't cancel while still pending. */ { $global_response = array ( "response" = 'Unable to cancel at this time. Your account is pending other changes. Please try again in 15 minutes.' , "error" = true ) ; } else /* Else, account already terminated. */ { $global_response = array ( "response" = 'Your account has been cancelled. Billing terminated.' ) ; /**/ if ( $post_vars [ "attr" ] [ "success" ] && ( $custom_success_url = preg_replace ( "/%%response%%/i" , urlencode ( $global_response [ "response" ] ) , $post_vars [ "attr" ] [ "success" ] ) ) /**/ && wp_redirect (c_ws_plugin__s2member_pro_paypal_utilities:: paypal_s2p_v_generate ( $custom_success_url ) ) !== "nill" ) /* Also generate an s2p-v variable. */ exit ( ) ; } } else if ( $paypal && ! empty ( $paypal [ "__error" ] ) && $paypal [ "L_ERRORCODE0" ] === "11592" ) /* Subscription Profile? */ { $global_response = array ( "response" = 'Please a href="https://' . ( ( $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "paypal_sandbox" ] ) ? "www.sandbox.paypal.com" : "www.paypal.com" ) . '/cgi-bin/webscr?cmd=_subscr-find&alias=' . urlencode ( $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "paypal_business" ] ) . '" rel="nofollow"log in at PayPal®/a to cancel your Subscription.' , "error" = true ) ; } else /* Else, there is no Billing Profile. */ { $global_response = array ( "response" = 'Your account has been cancelled. Billing terminated.' ) ; /**/ if ( $post_vars [ "attr" ] [ "success" ] && ( $custom_success_url = preg_replace ( "/%%response%%/i" , urlencode ( $global_response [ "response" ] ) , $post_vars [ "attr" ] [ "success" ] ) ) /**/ && wp_redirect (c_ws_plugin__s2member_pro_paypal_utilities:: paypal_s2p_v_generate ( $custom_success_url ) ) !== "nill" ) /* Also generate an s2p-v variable. */ exit ( ) ; } } else /* Else, there is no Billing Profile. */ { $global_response = array ( "response" = 'Your account has been cancelled. Billing terminated.' ) ; /**/ if ( $post_vars [ "attr" ] [ "success" ] && ( $custom_success_url = preg_replace ( "/%%response%%/i" , urlencode ( $global_response [ "response" ] ) , $post_vars [ "attr" ] [ "success" ] ) ) /**/ && wp_redirect (c_ws_plugin__s2member_pro_paypal_utilities:: paypal_s2p_v_generate ( $custom_success_url ) ) !== "nill" ) /* Also generate an s2p-v variable. */ exit ( ) ; } } else /* Else, an error. Not logged in. */ { $global_response = array ( "response" = 'You\'re not logged in.' , "error" = true ) ; } } else /* Else, an error. */ { $global_response = $error ; } } } } } } ? [ full view ]s2member-pro\includes\classes\gateways\paypal\paypal-cancellation-in.inc.php Source Code Documentation Packages ( Overview ) Classes Deprecated Todo Index Source Code(!-- :: s-words --)

Statistics: Posted by System Robot — August 15th, 2011, 3:17 pm


]]>
2011-07-11T17:35:19-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13250&p=27915#p27915 <![CDATA[s2Member v110710 / Source Code: s2member-p...]]>
s2Member v110710
Source Code: s2member-pro\includes\classes\gateways\paypal\paypal-cancellation-in.inc.php
Docs updated: July 11, 2011, 6:35 pm

Open for public discussion.
(!-- s-words :: --)Source Code Documentation Packages ( Overview ) Classes Deprecated Todo Index Source Code jQuery(window).load(function(){ if(typeof location.hash === 'string' && location.hash.match(/^#/)) jQuery('olli'+location.hash).addClass('hilite'); }); jQuery(window).bind('hashchange', function(){ if(typeof location.hash === 'string' && location.hash.match(/^#/)) jQuery('olli').removeClass('hilite'); jQuery('olli'+location.hash).addClass('hilite'); }); [ full view ]s2member-pro\includes\classes\gateways\paypal\paypal-cancellation-in.inc.php ?php /** * PayPal® Cancellation Forms ( inner processing routines ). * * Copyright: © 2009-2011 * {@link http://www.websharks-inc.com/ WebSharks, Inc.} * ( coded in the USA ) * * This WordPress® plugin ( s2Member Pro ) is comprised of two parts: * * o (1) Its PHP code is licensed under the GPL license, as is WordPress®. * You should have received a copy of the GNU General Public License, * along with this software. In the main directory, see: /licensing/ * If not, see: {@link http://www.gnu.org/licenses/}. * * o (2) All other parts of ( s2Member Pro ); including, but not limited to: * the CSS code, some JavaScript code, images, and design; * are licensed according to the license purchased. * See: {@link http://www.s2member.com/prices/} * * Unless you have our prior written consent, you must NOT directly or indirectly license, * sub-license, sell, resell, or provide for free; part (2) of the s2Member Pro Module; * or make an offer to do any of these things. All of these things are strictly * prohibited with part (2) of the s2Member Pro Module. * * Your purchase of s2Member Pro includes free lifetime upgrades via s2Member.com * ( i.e. new features, bug fixes, updates, improvements ); along with full access * to our video tutorial library: {@link http://www.s2member.com/videos/} * * @package s2Member\PayPal * @since 1.5 */ if ( realpath ( __FILE__ ) === realpath ( $_SERVER [ "SCRIPT_FILENAME" ] ) ) exit ( "Do not access this file directly." ) ; /**/ if ( ! class_exists ( "c_ws_plugin__s2member_pro_paypal_cancellation_in" ) ) { /** * PayPal® Cancellation Forms ( inner processing routines ). * * @package s2Member\PayPal * @since 1.5 */ class c_ws_plugin__s2member_pro_paypal_cancellation_in { /** * Handles processing of Pro Form cancellations. * * @package s2Member\PayPal * @since 1.5 * * @attaches-to ``add_action("init");`` * * @return null Or exits script execution after a custom URL redirection. */ public static function paypal_cancellation ( ) { if ( ! empty ( $_POST [ "s2member_pro_paypal_cancellation" ] [ "nonce" ] ) && ( $nonce = $_POST [ "s2member_pro_paypal_cancellation" ] [ "nonce" ] ) && wp_verify_nonce ( $nonce , "s2member-pro-paypal-cancellation" ) ) { $GLOBALS [ "ws_plugin__s2member_pro_paypal_cancellation_response" ] = array ( ) ; /* This holds the global response details. */ $global_response = & $GLOBALS [ "ws_plugin__s2member_pro_paypal_cancellation_response" ] ; /* This is a shorter reference. */ /**/ $post_vars = c_ws_plugin__s2member_utils_strings:: trim_deep ( stripslashes_deep ( $_POST [ "s2member_pro_paypal_cancellation" ] ) ) ; $post_vars [ "attr" ] = unserialize (c_ws_plugin__s2member_utils_encryption:: decrypt ( $post_vars [ "attr" ] ) ) ; /* And run a Filter. */ $post_vars [ "attr" ] = apply_filters ( "ws_plugin__s2member_pro_paypal_cancellation_post_attr" , $post_vars [ "attr" ] , get_defined_vars ( ) ) ; /**/ $post_vars [ "recaptcha_challenge_field" ] = ( ! $post_vars [ "recaptcha_challenge_field" ] ) ? trim ( stripslashes ( $_POST [ "recaptcha_challenge_field" ] ) ) : $post_vars [ "recaptcha_challenge_field" ] ; $post_vars [ "recaptcha_response_field" ] = ( ! $post_vars [ "recaptcha_response_field" ] ) ? trim ( stripslashes ( $_POST [ "recaptcha_response_field" ] ) ) : $post_vars [ "recaptcha_response_field" ] ; /**/ if ( !c_ws_plugin__s2member_pro_paypal_responses:: paypal_form_attr_validation_errors ( $post_vars [ "attr" ] ) ) /* Must NOT have any attr errors. */ { if ( ! ( $error = c_ws_plugin__s2member_pro_paypal_responses:: paypal_form_submission_validation_errors ( "cancellation" , $post_vars ) ) ) { if ( is_user_logged_in ( ) && is_object ( $user = wp_get_current_user ( ) ) && ( $user_id = $user - ID ) ) /* Are they logged in? */ { if ( ( $paypal = array ( "METHOD" = "GetRecurringPaymentsProfileDetails" ) ) && ( $paypal [ "PROFILEID" ] = $cur__subscr_id = get_user_option ( "s2member_subscr_id" ) ) ) { if ( ( $paypal = c_ws_plugin__s2member_paypal_utilities:: paypal_api_response ( $paypal ) ) && empty ( $paypal [ "__error" ] ) ) /* Have Subscription status? */ { if ( preg_match ( "/^(Active|ActiveProfile|Suspended|SuspendedProfile)$/i" , $paypal [ "STATUS" ] ) ) /* Possible? */ { if ( ! ( $ipn = array ( ) ) ) /* Build a simulated PayPal® IPN response. */ { $ipn [ "txn_type" ] = "subscr_cancel" ; $ipn [ "subscr_id" ] = $paypal [ "PROFILEID" ] ; $ipn [ "custom" ] = get_user_option ( "s2member_custom" ) ; /**/ $ipn [ "period1" ] = c_ws_plugin__s2member_paypal_utilities:: paypal_pro_period1 ( $paypal ) ; $ipn [ "period3" ] = c_ws_plugin__s2member_paypal_utilities:: paypal_pro_period3 ( $paypal ) ; /**/ $ipn [ "payer_email" ] = $paypal [ "EMAIL" ] ; $ipn [ "first_name" ] = $paypal [ "FIRSTNAME" ] ; $ipn [ "last_name" ] = $paypal [ "LASTNAME" ] ; /**/ $ipn [ "option_name1" ] = "Referencing Customer ID" ; $ipn [ "option_selection1" ] = $paypal [ "PROFILEID" ] ; /**/ $ipn [ "option_name2" ] = "Customer IP Address" ; /* IP Address. */ $ipn [ "option_selection2" ] = get_user_option ( "s2member_registration_ip" ) ; /**/ $ipn [ "item_name" ] = $paypal [ "DESC" ] ; $ipn [ "item_number" ] = c_ws_plugin__s2member_paypal_utilities:: paypal_pro_item_number ( $paypal ) ; /**/ $ipn_q = "&s2member_paypal_proxy=paypal&s2member_paypal_proxy_use=pro-emails" ; $ipn_q .= "&s2member_paypal_proxy_verification=" . urlencode (c_ws_plugin__s2member_paypal_utilities:: paypal_proxy_key_gen ( ) ) ; /**/ c_ws_plugin__s2member_utils_urls:: remote ( site_url ( "/?s2member_paypal_notify=1" . $ipn_q ) , $ipn , array ( "timeout" = 20 ) ) ; } /**/ if ( ( $paypal = array ( "METHOD" = "ManageRecurringPaymentsProfileStatus" , "ACTION" = "Cancel" , "PROFILEID" = $cur__subscr_id ) ) ) { c_ws_plugin__s2member_paypal_utilities:: paypal_api_response ( $paypal ) ; /**/ $global_response = array ( "response" = 'strongConfirmed./strong Your account has been cancelled. Billing terminated.' ) ; /**/ if ( $post_vars [ "attr" ] [ "success" ] && ( $custom_success_url = preg_replace ( "/%%response%%/i" , urlencode ( $global_response [ "response" ] ) , $post_vars [ "attr" ] [ "success" ] ) ) /**/ && wp_redirect (c_ws_plugin__s2member_pro_paypal_utilities:: paypal_s2p_v_generate ( $custom_success_url ) ) !== "nill" ) /* Also generate an s2p-v variable. */ exit ( ) ; } } else if ( preg_match ( "/^(Pending|PendingProfile)$/i" , $paypal [ "STATUS" ] ) ) /* Can't cancel while still pending. */ { $global_response = array ( "response" = 'Unable to cancel at this time. Your account is pending other changes. Please try again in 15 minutes.' , "error" = true ) ; } else /* Else, account already terminated. */ { $global_response = array ( "response" = 'Your account has been cancelled. Billing terminated.' ) ; /**/ if ( $post_vars [ "attr" ] [ "success" ] && ( $custom_success_url = preg_replace ( "/%%response%%/i" , urlencode ( $global_response [ "response" ] ) , $post_vars [ "attr" ] [ "success" ] ) ) /**/ && wp_redirect (c_ws_plugin__s2member_pro_paypal_utilities:: paypal_s2p_v_generate ( $custom_success_url ) ) !== "nill" ) /* Also generate an s2p-v variable. */ exit ( ) ; } } else if ( $paypal && ! empty ( $paypal [ "__error" ] ) && $paypal [ "L_ERRORCODE0" ] === "11592" ) /* Subscription Profile? */ { $global_response = array ( "response" = 'Please a href="https://' . ( ( $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "paypal_sandbox" ] ) ? "www.sandbox.paypal.com" : "www.paypal.com" ) . '/cgi-bin/webscr?cmd=_subscr-find&alias=' . urlencode ( $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "paypal_business" ] ) . '" rel="nofollow"log in at PayPal®/a to cancel your Subscription.' , "error" = true ) ; } else /* Else, there is no Billing Profile. */ { $global_response = array ( "response" = 'Your account has been cancelled. Billing terminated.' ) ; /**/ if ( $post_vars [ "attr" ] [ "success" ] && ( $custom_success_url = preg_replace ( "/%%response%%/i" , urlencode ( $global_response [ "response" ] ) , $post_vars [ "attr" ] [ "success" ] ) ) /**/ && wp_redirect (c_ws_plugin__s2member_pro_paypal_utilities:: paypal_s2p_v_generate ( $custom_success_url ) ) !== "nill" ) /* Also generate an s2p-v variable. */ exit ( ) ; } } else /* Else, there is no Billing Profile. */ { $global_response = array ( "response" = 'Your account has been cancelled. Billing terminated.' ) ; /**/ if ( $post_vars [ "attr" ] [ "success" ] && ( $custom_success_url = preg_replace ( "/%%response%%/i" , urlencode ( $global_response [ "response" ] ) , $post_vars [ "attr" ] [ "success" ] ) ) /**/ && wp_redirect (c_ws_plugin__s2member_pro_paypal_utilities:: paypal_s2p_v_generate ( $custom_success_url ) ) !== "nill" ) /* Also generate an s2p-v variable. */ exit ( ) ; } } else /* Else, an error. Not logged in. */ { $global_response = array ( "response" = 'You\'re not logged in.' , "error" = true ) ; } } else /* Else, an error. */ { $global_response = $error ; } } } } } } ? [ full view ]s2member-pro\includes\classes\gateways\paypal\paypal-cancellation-in.inc.php Source Code Documentation Packages ( Overview ) Classes Deprecated Todo Index Source Code(!-- :: s-words --)

Statistics: Posted by System Robot — July 11th, 2011, 5:35 pm


]]>
2011-07-09T06:15:36-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13250&p=25545#p25545 <![CDATA[s2Member v111220 / Source Code: s2member-p...]]>
s2Member v111220
Source Code: s2member-pro\includes\classes\gateways\paypal\paypal-cancellation-in.inc.php
Docs updated: December 20, 2011, 9:52 am

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — July 9th, 2011, 6:15 am


]]>