Community Support Forums — WordPress® ( Users Helping Users ) — 2011-12-20T09:51:33-05:00 http://www.primothemes.com/forums/feed.php?f=40&t=13188 2011-12-20T09:51:33-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13188&p=57947#p57947 <![CDATA[s2Member v111220 / Source Code: s2member-p...]]>
s2Member v111220
Source Code: s2member-pro\includes\classes\gateways\authnet\authnet-arb.inc.php
Docs updated: December 20, 2011, 9:51 am

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

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


]]>
2011-12-07T01:04:40-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13188&p=55629#p55629 <![CDATA[s2Member v111206 / Source Code: s2member-p...]]>
s2Member v111206
Source Code: s2member-pro\includes\classes\gateways\authnet\authnet-arb.inc.php
Docs updated: December 7, 2011, 1:04 am

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

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


]]>
2011-11-05T19:27:22-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13188&p=52003#p52003 <![CDATA[s2Member v111105 / Source Code: s2member-p...]]>
s2Member v111105
Source Code: s2member-pro\includes\classes\gateways\authnet\authnet-arb.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:36:45-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13188&p=50099#p50099 <![CDATA[s2Member v111029 / Source Code: s2member-p...]]>
s2Member v111029
Source Code: s2member-pro\includes\classes\gateways\authnet\authnet-arb.inc.php
Docs updated: October 29, 2011, 9:36 pm

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

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


]]>
2011-10-17T15:41:08-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13188&p=47893#p47893 <![CDATA[s2Member v111017 / Source Code: s2member-p...]]>
s2Member v111017
Source Code: s2member-pro\includes\classes\gateways\authnet\authnet-arb.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:36:53-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13188&p=46295#p46295 <![CDATA[s2Member v111011 / Source Code: s2member-p...]]>
s2Member v111011
Source Code: s2member-pro\includes\classes\gateways\authnet\authnet-arb.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:36 pm


]]>
2011-10-03T15:49:18-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13188&p=44424#p44424 <![CDATA[s2Member v111003 / Source Code: s2member-p...]]>
s2Member v111003
Source Code: s2member-pro\includes\classes\gateways\authnet\authnet-arb.inc.php
Docs updated: October 3, 2011, 1:49 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:42:58-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13188&p=43131#p43131 <![CDATA[s2Member v111002 / Source Code: s2member-p...]]>
s2Member v111002
Source Code: s2member-pro\includes\classes\gateways\authnet\authnet-arb.inc.php
Docs updated: October 3, 2011, 1:42 am

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

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


]]>
2011-09-27T05:27:59-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13188&p=41373#p41373 <![CDATA[s2Member v110927 / Source Code: s2member-p...]]>
s2Member v110927
Source Code: s2member-pro\includes\classes\gateways\authnet\authnet-arb.inc.php
Docs updated: September 27, 2011, 3:27 am

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

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


]]>
2011-09-26T21:04:27-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13188&p=40129#p40129 <![CDATA[s2Member v110926 / Source Code: s2member-p...]]>
s2Member v110926
Source Code: s2member-pro\includes\classes\gateways\authnet\authnet-arb.inc.php
Docs updated: September 26, 2011, 7:04 pm

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

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


]]>
2011-09-17T17:03:32-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13188&p=38273#p38273 <![CDATA[s2Member v110915 / Source Code: s2member-p...]]>
s2Member v110915
Source Code: s2member-pro\includes\classes\gateways\authnet\authnet-arb.inc.php
Docs updated: September 17, 2011, 3:03 pm

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

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


]]>
2011-09-14T01:29:01-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13188&p=36851#p36851 <![CDATA[s2Member v110913 / Source Code: s2member-p...]]>
s2Member v110913
Source Code: s2member-pro\includes\classes\gateways\authnet\authnet-arb.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:03:59-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13188&p=35579#p35579 <![CDATA[s2Member v110912 / Source Code: s2member-p...]]>
s2Member v110912
Source Code: s2member-pro\includes\classes\gateways\authnet\authnet-arb.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:03 pm


]]>
2011-08-15T15:16:24-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13188&p=31687#p31687 <![CDATA[s2Member v110815 / Source Code: s2member-p...]]>
s2Member v110815
Source Code: s2member-pro\includes\classes\gateways\authnet\authnet-arb.inc.php
Docs updated: August 15, 2011, 4:16 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\authnet\authnet-arb.inc.php ?php /** * Authorize.Net® ARB. * * 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\AuthNet * @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_authnet_arb" ) ) { /** * Authorize.Net® ARB. * * @package s2Member\AuthNet * @since 1.5 */ class c_ws_plugin__s2member_pro_authnet_arb { /** * Connect to and process ARB service information for Authorize.Net®. * * s2Member's Auto EOT System must be enabled for this to work properly. * * If you have a HUGE userbase, increase the max IPNs per process. * But NOTE, this runs ``$per_process`` *( per Blog )* on a Multisite Network. * To increase, use: ``add_filter ("ws_plugin__s2member_pro_arb_service_ipns_per_process");``. * * @package s2Member\AuthNet * @since 1.5 * * @attaches-to ``add_action("ws_plugin__s2member_after_auto_eot_system");`` * * @param array $vars Expects an array of defined variables to be passed in by the Action Hook. * @return null */ public static function authnet_arb_service ( $vars = FALSE ) { global $wpdb ; /* Need global DB obj. */ global $current_site , $current_blog ; /* For Multisite support. */ /**/ if ( $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "pro_authnet_api_login_id" ] ) { $scan_time = apply_filters ( "ws_plugin__s2member_pro_arb_service_status_scan_time" , strtotime ( "-1 day" ) , get_defined_vars ( ) ) ; $per_process = apply_filters ( "ws_plugin__s2member_pro_arb_service_ipns_per_process" , $vars [ "per_process" ] , get_defined_vars ( ) ) ; /**/ if ( is_array ( $objs = $wpdb - get_results ( "SELECT `user_id` AS `ID` FROM `" . $wpdb - usermeta . "` WHERE `meta_key` = '" . $wpdb - prefix . "s2member_subscr_gateway' AND `meta_value` = 'authnet' AND `user_id` NOT IN(SELECT `user_id` FROM `" . $wpdb - usermeta . "` WHERE `meta_key` = '" . $wpdb - prefix . "s2member_last_status_scan' AND `meta_value` '" . esc_sql ( $scan_time ) . "')" ) ) ) { foreach ( $objs as $obj ) /* Run through all of the Paid Member IDs that originated their Subscription through the Authorize.Net® gateway. */ { if ( ( $user_id = $obj - ID ) && ( $counter = (int) $counter + 1 ) ) /* Update counter. Only run through X records; given by $per_process. */ { unset ( $authnet , $subscr_id , $ipn_sv , $processing , $processed , $ipn , $ipn_q , $log4 , $_log4 , $log2 , $logs_dir ) ; /* Unset these. */ /**/ if ( ( $authnet = array ( "x_method" = "status" ) ) && ( $authnet [ "x_subscription_id" ] = $subscr_id = get_user_option ( "s2member_subscr_id" , $user_id ) ) ) { if ( ! get_user_option ( "s2member_auto_eot_time" , $user_id ) && is_array ( $ipn_sv = c_ws_plugin__s2member_utils_users:: get_user_ipn_signup_vars ( false , $subscr_id ) ) ) { if ( ( $authnet = c_ws_plugin__s2member_pro_authnet_utilities:: authnet_arb_response ( $authnet ) ) && empty ( $authnet [ "__error" ] ) && $authnet [ "subscription_status" ] && is_array ( $authnet [ "arb_ipn_signup_vars" ] = $ipn_sv ) ) { if ( preg_match ( "/^expired$/i" , $authnet [ "subscription_status" ] ) ) /* Expired? */ { $authnet [ "s2member_log" ] [ ] = "Authorize.Net® ARB/IPN processed on: " . date ( "D M j, Y g:i:s a T" ) ; /**/ $authnet [ "s2member_log" ] [ ] = "Authorize.Net® transaction identified as ( `SUBSCRIPTION EXPIRATION` )." ; $authnet [ "s2member_log" ] [ ] = "IPN reformulated. Piping through s2Member's core/standard PayPal® processor as `txn_type` ( `subscr_eot` )." ; $authnet [ "s2member_log" ] [ ] = "Please check PayPal® IPN logs for further processing details." ; /**/ $processing = $processed = true ; $ipn = array ( ) ; /* Reset. */ /**/ $ipn [ "txn_type" ] = "subscr_eot" ; $ipn [ "subscr_id" ] = $authnet [ "arb_ipn_signup_vars" ] [ "subscr_id" ] ; /**/ $ipn [ "custom" ] = $authnet [ "arb_ipn_signup_vars" ] [ "custom" ] ; /**/ $ipn [ "period1" ] = $authnet [ "arb_ipn_signup_vars" ] [ "period1" ] ; $ipn [ "period3" ] = $authnet [ "arb_ipn_signup_vars" ] [ "period3" ] ; /**/ $ipn [ "payer_email" ] = $authnet [ "arb_ipn_signup_vars" ] [ "payer_email" ] ; $ipn [ "first_name" ] = $authnet [ "arb_ipn_signup_vars" ] [ "first_name" ] ; $ipn [ "last_name" ] = $authnet [ "arb_ipn_signup_vars" ] [ "last_name" ] ; /**/ $ipn [ "option_name1" ] = $authnet [ "arb_ipn_signup_vars" ] [ "option_name1" ] ; $ipn [ "option_selection1" ] = $authnet [ "arb_ipn_signup_vars" ] [ "option_selection1" ] ; /**/ $ipn [ "option_name2" ] = $authnet [ "arb_ipn_signup_vars" ] [ "option_name2" ] ; $ipn [ "option_selection2" ] = $authnet [ "arb_ipn_signup_vars" ] [ "option_selection2" ] ; /**/ $ipn [ "item_number" ] = $authnet [ "arb_ipn_signup_vars" ] [ "item_number" ] ; $ipn [ "item_name" ] = $authnet [ "arb_ipn_signup_vars" ] [ "item_name" ] ; /**/ $ipn_q = "&s2member_paypal_proxy=authnet&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 ) ) ; } /**/ else if ( preg_match ( "/^(suspended|canceled|terminated)$/i" , $authnet [ "subscription_status" ] ) ) { $authnet [ "s2member_log" ] [ ] = "Authorize.Net® ARB/IPN processed on: " . date ( "D M j, Y g:i:s a T" ) ; /**/ $authnet [ "s2member_log" ] [ ] = "Authorize.Net® transaction identified as ( `SUBSCRIPTION " . strtoupper ( $authnet [ "subscription_status" ] ) . "` )." ; $authnet [ "s2member_log" ] [ ] = "IPN reformulated. Piping through s2Member's core/standard PayPal® processor as `txn_type` ( `subscr_cancel` )." ; $authnet [ "s2member_log" ] [ ] = "Please check PayPal® IPN logs for further processing details." ; /**/ $processing = $processed = true ; $ipn = array ( ) ; /* Reset. */ /**/ $ipn [ "txn_type" ] = "subscr_cancel" ; $ipn [ "subscr_id" ] = $authnet [ "arb_ipn_signup_vars" ] [ "subscr_id" ] ; /**/ $ipn [ "custom" ] = $authnet [ "arb_ipn_signup_vars" ] [ "custom" ] ; /**/ $ipn [ "period1" ] = $authnet [ "arb_ipn_signup_vars" ] [ "period1" ] ; $ipn [ "period3" ] = $authnet [ "arb_ipn_signup_vars" ] [ "period3" ] ; /**/ $ipn [ "payer_email" ] = $authnet [ "arb_ipn_signup_vars" ] [ "payer_email" ] ; $ipn [ "first_name" ] = $authnet [ "arb_ipn_signup_vars" ] [ "first_name" ] ; $ipn [ "last_name" ] = $authnet [ "arb_ipn_signup_vars" ] [ "last_name" ] ; /**/ $ipn [ "option_name1" ] = $authnet [ "arb_ipn_signup_vars" ] [ "option_name1" ] ; $ipn [ "option_selection1" ] = $authnet [ "arb_ipn_signup_vars" ] [ "option_selection1" ] ; /**/ $ipn [ "option_name2" ] = $authnet [ "arb_ipn_signup_vars" ] [ "option_name2" ] ; $ipn [ "option_selection2" ] = $authnet [ "arb_ipn_signup_vars" ] [ "option_selection2" ] ; /**/ $ipn [ "item_number" ] = $authnet [ "arb_ipn_signup_vars" ] [ "item_number" ] ; $ipn [ "item_name" ] = $authnet [ "arb_ipn_signup_vars" ] [ "item_name" ] ; /**/ $ipn_q = "&s2member_paypal_proxy=authnet&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 ) ) ; } /**/ else if ( ! $processed ) /* If nothing was processed, here we add a message to the logs indicating the status; which is being ignored by s2Member. */ $authnet [ "s2member_log" ] [ ] = "Ignoring this ARB/Status ( `" . $authnet [ "subscription_status" ] . "` ). It does NOT require any action on the part of s2Member." ; /**/ $logv = c_ws_plugin__s2member_utilities:: ver_details ( ) ; $logm = c_ws_plugin__s2member_utilities:: mem_details ( ) ; $log4 = $_SERVER [ "HTTP_HOST" ] . $_SERVER [ "REQUEST_URI" ] . "\nUser-Agent: " . $_SERVER [ "HTTP_USER_AGENT" ] ; $log4 = ( is_multisite ( ) && ! is_main_site ( ) ) ? ( $_log4 = $current_blog - domain . $current_blog - path ) . "\n" . $log4 : $log4 ; $log2 = ( is_multisite ( ) && ! is_main_site ( ) ) ? "authnet-arb-ipn-4-" . trim ( preg_replace ( "/[^a-z0-9]/i" , "-" , $_log4 ) , "-" ) . ".log" : "authnet-arb-ipn.log" ; /**/ if ( $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "gateway_debug_logs" ] ) if ( is_dir ( $logs_dir = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "logs_dir" ] ) ) if ( is_writable ( $logs_dir ) && c_ws_plugin__s2member_utils_logs:: archive_oversize_log_files ( ) ) file_put_contents ( $logs_dir . "/" . $log2 , $logv . "\n" . $logm . "\n" . $log4 . "\n" . var_export ( $authnet , true ) . "\n \n" , FILE_APPEND) ; } } } /**/ update_user_option ( $user_id , "s2member_last_status_scan" , time ( ) ) ; /**/ if ( $counter = $per_process ) /* Only this many. */ break ; /* Break the loop now. */ } } } } /**/ return ; /* Return for uniformity. */ } } } ? [ full view ]s2member-pro\includes\classes\gateways\authnet\authnet-arb.inc.php Source Code Documentation Packages ( Overview ) Classes Deprecated Todo Index Source Code(!-- :: s-words --)

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


]]>
2011-07-11T17:33:34-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13188&p=27851#p27851 <![CDATA[s2Member v110710 / Source Code: s2member-p...]]>
s2Member v110710
Source Code: s2member-pro\includes\classes\gateways\authnet\authnet-arb.inc.php
Docs updated: July 11, 2011, 6:33 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\authnet\authnet-arb.inc.php ?php /** * Authorize.Net® ARB. * * 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\AuthNet * @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_authnet_arb" ) ) { /** * Authorize.Net® ARB. * * @package s2Member\AuthNet * @since 1.5 */ class c_ws_plugin__s2member_pro_authnet_arb { /** * Connect to and process ARB service information for Authorize.Net®. * * s2Member's Auto EOT System must be enabled for this to work properly. * * If you have a HUGE userbase, increase the max IPNs per process. * But NOTE, this runs ``$per_process`` *( per Blog )* on a Multisite Network. * To increase, use: ``add_filter ("ws_plugin__s2member_pro_arb_service_ipns_per_process");``. * * @package s2Member\AuthNet * @since 1.5 * * @attaches-to ``add_action("ws_plugin__s2member_after_auto_eot_system");`` * * @param array $vars Expects an array of defined variables to be passed in by the Action Hook. * @return null */ public static function authnet_arb_service ( $vars = FALSE ) { global $wpdb ; /* Need global DB obj. */ global $current_site , $current_blog ; /* For Multisite support. */ /**/ if ( $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "pro_authnet_api_login_id" ] ) { $scan_time = apply_filters ( "ws_plugin__s2member_pro_arb_service_status_scan_time" , strtotime ( "-1 day" ) , get_defined_vars ( ) ) ; $per_process = apply_filters ( "ws_plugin__s2member_pro_arb_service_ipns_per_process" , $vars [ "per_process" ] , get_defined_vars ( ) ) ; /**/ if ( is_array ( $objs = $wpdb - get_results ( "SELECT `user_id` AS `ID` FROM `" . $wpdb - usermeta . "` WHERE `meta_key` = '" . $wpdb - prefix . "s2member_subscr_gateway' AND `meta_value` = 'authnet' AND `user_id` NOT IN(SELECT `user_id` FROM `" . $wpdb - usermeta . "` WHERE `meta_key` = '" . $wpdb - prefix . "s2member_last_status_scan' AND `meta_value` '" . esc_sql ( $scan_time ) . "')" ) ) ) { foreach ( $objs as $obj ) /* Run through all of the Paid Member IDs that originated their Subscription through the Authorize.Net® gateway. */ { if ( ( $user_id = $obj - ID ) && ( $counter = (int) $counter + 1 ) ) /* Update counter. Only run through X records; given by $per_process. */ { unset ( $authnet , $subscr_id , $ipn_sv , $processing , $processed , $ipn , $ipn_q , $log4 , $_log4 , $log2 , $logs_dir ) ; /* Unset these. */ /**/ if ( ( $authnet = array ( "x_method" = "status" ) ) && ( $authnet [ "x_subscription_id" ] = $subscr_id = get_user_option ( "s2member_subscr_id" , $user_id ) ) ) { if ( ! get_user_option ( "s2member_auto_eot_time" , $user_id ) && is_array ( $ipn_sv = c_ws_plugin__s2member_utils_users:: get_user_ipn_signup_vars ( false , $subscr_id ) ) ) { if ( ( $authnet = c_ws_plugin__s2member_pro_authnet_utilities:: authnet_arb_response ( $authnet ) ) && empty ( $authnet [ "__error" ] ) && $authnet [ "subscription_status" ] && is_array ( $authnet [ "arb_ipn_signup_vars" ] = $ipn_sv ) ) { if ( preg_match ( "/^expired$/i" , $authnet [ "subscription_status" ] ) ) /* Expired? */ { $authnet [ "s2member_log" ] [ ] = "Authorize.Net® ARB/IPN processed on: " . date ( "D M j, Y g:i:s a T" ) ; /**/ $authnet [ "s2member_log" ] [ ] = "Authorize.Net® transaction identified as (SUBSCRIPTION EXPIRATION)." ; $authnet [ "s2member_log" ] [ ] = "IPN reformulated. Piping through s2Member's core/standard PayPal® processor as txn_type (subscr_eot)." ; $authnet [ "s2member_log" ] [ ] = "Please check PayPal® IPN logs for further processing details." ; /**/ $processing = $processed = true ; $ipn = array ( ) ; /* Reset. */ /**/ $ipn [ "txn_type" ] = "subscr_eot" ; $ipn [ "subscr_id" ] = $authnet [ "arb_ipn_signup_vars" ] [ "subscr_id" ] ; /**/ $ipn [ "custom" ] = $authnet [ "arb_ipn_signup_vars" ] [ "custom" ] ; /**/ $ipn [ "period1" ] = $authnet [ "arb_ipn_signup_vars" ] [ "period1" ] ; $ipn [ "period3" ] = $authnet [ "arb_ipn_signup_vars" ] [ "period3" ] ; /**/ $ipn [ "payer_email" ] = $authnet [ "arb_ipn_signup_vars" ] [ "payer_email" ] ; $ipn [ "first_name" ] = $authnet [ "arb_ipn_signup_vars" ] [ "first_name" ] ; $ipn [ "last_name" ] = $authnet [ "arb_ipn_signup_vars" ] [ "last_name" ] ; /**/ $ipn [ "option_name1" ] = $authnet [ "arb_ipn_signup_vars" ] [ "option_name1" ] ; $ipn [ "option_selection1" ] = $authnet [ "arb_ipn_signup_vars" ] [ "option_selection1" ] ; /**/ $ipn [ "option_name2" ] = $authnet [ "arb_ipn_signup_vars" ] [ "option_name2" ] ; $ipn [ "option_selection2" ] = $authnet [ "arb_ipn_signup_vars" ] [ "option_selection2" ] ; /**/ $ipn [ "item_number" ] = $authnet [ "arb_ipn_signup_vars" ] [ "item_number" ] ; $ipn [ "item_name" ] = $authnet [ "arb_ipn_signup_vars" ] [ "item_name" ] ; /**/ $ipn_q = "&s2member_paypal_proxy=authnet&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 ) ) ; } /**/ else if ( preg_match ( "/^(suspended|canceled|terminated)$/i" , $authnet [ "subscription_status" ] ) ) { $authnet [ "s2member_log" ] [ ] = "Authorize.Net® ARB/IPN processed on: " . date ( "D M j, Y g:i:s a T" ) ; /**/ $authnet [ "s2member_log" ] [ ] = "Authorize.Net® transaction identified as (SUBSCRIPTION " . strtoupper ( $authnet [ "subscription_status" ] ) . ")." ; $authnet [ "s2member_log" ] [ ] = "IPN reformulated. Piping through s2Member's core/standard PayPal® processor as txn_type (subscr_cancel)." ; $authnet [ "s2member_log" ] [ ] = "Please check PayPal® IPN logs for further processing details." ; /**/ $processing = $processed = true ; $ipn = array ( ) ; /* Reset. */ /**/ $ipn [ "txn_type" ] = "subscr_cancel" ; $ipn [ "subscr_id" ] = $authnet [ "arb_ipn_signup_vars" ] [ "subscr_id" ] ; /**/ $ipn [ "custom" ] = $authnet [ "arb_ipn_signup_vars" ] [ "custom" ] ; /**/ $ipn [ "period1" ] = $authnet [ "arb_ipn_signup_vars" ] [ "period1" ] ; $ipn [ "period3" ] = $authnet [ "arb_ipn_signup_vars" ] [ "period3" ] ; /**/ $ipn [ "payer_email" ] = $authnet [ "arb_ipn_signup_vars" ] [ "payer_email" ] ; $ipn [ "first_name" ] = $authnet [ "arb_ipn_signup_vars" ] [ "first_name" ] ; $ipn [ "last_name" ] = $authnet [ "arb_ipn_signup_vars" ] [ "last_name" ] ; /**/ $ipn [ "option_name1" ] = $authnet [ "arb_ipn_signup_vars" ] [ "option_name1" ] ; $ipn [ "option_selection1" ] = $authnet [ "arb_ipn_signup_vars" ] [ "option_selection1" ] ; /**/ $ipn [ "option_name2" ] = $authnet [ "arb_ipn_signup_vars" ] [ "option_name2" ] ; $ipn [ "option_selection2" ] = $authnet [ "arb_ipn_signup_vars" ] [ "option_selection2" ] ; /**/ $ipn [ "item_number" ] = $authnet [ "arb_ipn_signup_vars" ] [ "item_number" ] ; $ipn [ "item_name" ] = $authnet [ "arb_ipn_signup_vars" ] [ "item_name" ] ; /**/ $ipn_q = "&s2member_paypal_proxy=authnet&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 ) ) ; } /**/ else if ( ! $processed ) /* If nothing was processed, here we add a message to the logs indicating the status; which is being ignored by s2Member. */ $authnet [ "s2member_log" ] [ ] = "Ignoring this ARB/Status (" . $authnet [ "subscription_status" ] . "). It does NOT require any action on the part of s2Member." ; /**/ $logv = c_ws_plugin__s2member_utilities:: ver_details ( ) ; $log4 = $_SERVER [ "HTTP_HOST" ] . $_SERVER [ "REQUEST_URI" ] . "\nUser-Agent: " . $_SERVER [ "HTTP_USER_AGENT" ] ; $log4 = ( is_multisite ( ) && ! is_main_site ( ) ) ? ( $_log4 = $current_blog - domain . $current_blog - path ) . "\n" . $log4 : $log4 ; $log2 = ( is_multisite ( ) && ! is_main_site ( ) ) ? "authnet-arb-ipn-4-" . trim ( preg_replace ( "/[^a-z0-9]/i" , "-" , $_log4 ) , "-" ) . ".log" : "authnet-arb-ipn.log" ; /**/ if ( $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "gateway_debug_logs" ] ) if ( is_dir ( $logs_dir = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "logs_dir" ] ) ) if ( is_writable ( $logs_dir ) && c_ws_plugin__s2member_utils_logs:: archive_oversize_log_files ( ) ) file_put_contents ( $logs_dir . "/" . $log2 , $logv . "\n" . $log4 . "\n" . var_export ( $authnet , true ) . "\n \n" , FILE_APPEND) ; } } } /**/ update_user_option ( $user_id , "s2member_last_status_scan" , time ( ) ) ; /**/ if ( $counter = $per_process ) /* Only this many. */ break ; /* Break the loop now. */ } } } } /**/ return ; /* Return for uniformity. */ } } } ? [ full view ]s2member-pro\includes\classes\gateways\authnet\authnet-arb.inc.php Source Code Documentation Packages ( Overview ) Classes Deprecated Todo Index Source Code(!-- :: s-words --)

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


]]>
2011-07-09T06:13:59-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13188&p=25483#p25483 <![CDATA[s2Member v111220 / Source Code: s2member-p...]]>
s2Member v111220
Source Code: s2member-pro\includes\classes\gateways\authnet\authnet-arb.inc.php
Docs updated: December 20, 2011, 9:51 am

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

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


]]>