Community Support Forums — WordPress® ( Users Helping Users ) — 2011-12-20T09:47:10-05:00 http://www.primothemes.com/forums/feed.php?f=40&t=12774 2011-12-20T09:47:10-05:00 http://www.primothemes.com/forums/viewtopic.php?t=12774&p=57474#p57474 <![CDATA[s2Member v111220 / Package Class: s2Member...]]>
s2Member v111220
Package Class: s2Member\PayPal\c_ws_plugin__s2member_pro_paypal_utilities
Docs updated: December 20, 2011, 9:47 am

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

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


]]>
2011-12-07T00:59:50-05:00 http://www.primothemes.com/forums/viewtopic.php?t=12774&p=55156#p55156 <![CDATA[s2Member v111206 / Package Class: s2Member...]]>
s2Member v111206
Package Class: s2Member\PayPal\c_ws_plugin__s2member_pro_paypal_utilities
Docs updated: December 7, 2011, 12:59 am

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

Statistics: Posted by System Robot — December 7th, 2011, 12:59 am


]]>
2011-11-05T19:23:33-05:00 http://www.primothemes.com/forums/viewtopic.php?t=12774&p=51531#p51531 <![CDATA[s2Member v111105 / Package Class: s2Member...]]>
s2Member v111105
Package Class: s2Member\PayPal\c_ws_plugin__s2member_pro_paypal_utilities
Docs updated: November 5, 2011, 8:23 pm

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

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


]]>
2011-10-29T20:31:55-05:00 http://www.primothemes.com/forums/viewtopic.php?t=12774&p=49626#p49626 <![CDATA[s2Member v111029 / Package Class: s2Member...]]>
s2Member v111029
Package Class: s2Member\PayPal\c_ws_plugin__s2member_pro_paypal_utilities
Docs updated: October 29, 2011, 9:32 pm

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

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


]]>
2011-10-17T15:35:46-05:00 http://www.primothemes.com/forums/viewtopic.php?t=12774&p=47420#p47420 <![CDATA[s2Member v111017 / Package Class: s2Member...]]>
s2Member v111017
Package Class: s2Member\PayPal\c_ws_plugin__s2member_pro_paypal_utilities
Docs updated: October 17, 2011, 1:35 pm

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

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


]]>
2011-10-11T14:19:01-05:00 http://www.primothemes.com/forums/viewtopic.php?t=12774&p=45814#p45814 <![CDATA[s2Member v111011 / Package Class: s2Member...]]>
s2Member v111011
Package Class: s2Member\PayPal\c_ws_plugin__s2member_pro_paypal_utilities
Docs updated: October 11, 2011, 12:19 pm

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

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


]]>
2011-10-03T15:44:14-05:00 http://www.primothemes.com/forums/viewtopic.php?t=12774&p=43951#p43951 <![CDATA[s2Member v111003 / Package Class: s2Member...]]>
s2Member v111003
Package Class: s2Member\PayPal\c_ws_plugin__s2member_pro_paypal_utilities
Docs updated: October 3, 2011, 1:44 pm

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

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


]]>
2011-10-03T03:37:34-05:00 http://www.primothemes.com/forums/viewtopic.php?t=12774&p=42658#p42658 <![CDATA[s2Member v111002 / Package Class: s2Member...]]>
s2Member v111002
Package Class: s2Member\PayPal\c_ws_plugin__s2member_pro_paypal_utilities
Docs updated: October 3, 2011, 1:37 am

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

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


]]>
2011-09-27T05:09:00-05:00 http://www.primothemes.com/forums/viewtopic.php?t=12774&p=40902#p40902 <![CDATA[s2Member v110927 / Package Class: s2Member...]]>
s2Member v110927
Package Class: s2Member\PayPal\c_ws_plugin__s2member_pro_paypal_utilities
Docs updated: September 27, 2011, 3:09 am

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

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


]]>
2011-09-26T21:00:28-05:00 http://www.primothemes.com/forums/viewtopic.php?t=12774&p=39660#p39660 <![CDATA[s2Member v110926 / Package Class: s2Member...]]>
s2Member v110926
Package Class: s2Member\PayPal\c_ws_plugin__s2member_pro_paypal_utilities
Docs updated: September 26, 2011, 7:00 pm

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

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


]]>
2011-09-17T16:16:56-05:00 http://www.primothemes.com/forums/viewtopic.php?t=12774&p=37811#p37811 <![CDATA[s2Member v110915 / Package Class: s2Member...]]>
s2Member v110915
Package Class: s2Member\PayPal\c_ws_plugin__s2member_pro_paypal_utilities
Docs updated: September 17, 2011, 2:17 pm

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

Statistics: Posted by System Robot — September 17th, 2011, 4:16 pm


]]>
2011-09-14T01:25:39-05:00 http://www.primothemes.com/forums/viewtopic.php?t=12774&p=36392#p36392 <![CDATA[s2Member v110913 / Package Class: s2Member...]]>
s2Member v110913
Package Class: s2Member\PayPal\c_ws_plugin__s2member_pro_paypal_utilities
Docs updated: September 13, 2011, 11:25 pm

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

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


]]>
2011-09-13T12:00:38-05:00 http://www.primothemes.com/forums/viewtopic.php?t=12774&p=35120#p35120 <![CDATA[s2Member v110912 / Package Class: s2Member...]]>
s2Member v110912
Package Class: s2Member\PayPal\c_ws_plugin__s2member_pro_paypal_utilities
Docs updated: September 13, 2011, 10:00 am

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

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


]]>
2011-08-15T13:33:50-05:00 http://www.primothemes.com/forums/viewtopic.php?t=12774&p=31233#p31233 <![CDATA[s2Member v110815 / Package Class: s2Member...]]>
s2Member v110815
Package Class: s2Member\PayPal\c_ws_plugin__s2member_pro_paypal_utilities
Docs updated: August 15, 2011, 2:34 pm

Open for public discussion.
(!-- s-words :: --)Source Code Documentation Packages ( Overview ) Classes Deprecated Todo Index Class Summary Classes Hooks/Filters Field Summary | Method Summary | Field Detail | Method Detail Package s2Member\PayPal s2member-pro\includes\classes\gateways\paypal\paypal-utilities.inc.php at line #44 Class c_ws_plugin__s2member_pro_paypal_utilities c_ws_plugin__s2member_pro_paypal_utilities public class c_ws_plugin__s2member_pro_paypal_utilities PayPal® utilities. Since: 1.5 ( 8 Methods )Method Summary public static null paypal_ajax_tax() Handles the return of Tax for Pro Forms, via AJAX; through a JSON object. public static array|str paypal_apply_coupon(array $attr, str $coupon_code, str $return_response_or_attr, str $return_reponse_or_attr) Checks to see if a Coupon Code was supplied, and if so; what does it provide? public static array paypal_cost(int|str $trial_sub_total, int|str $sub_total, str $state, str $country, int|str $zip, str $currency, str $desc) Handles all cost calculations for PayPal®. public static array paypal_maestro_solo_2gbp(array $attr, str $card_type) Handles currency conversions for Maestro/Solo cards. public static str paypal_s2p_v_generate(str $url) Adds the s2p-v variable onto the end of a custom URL for success. public static bool paypal_s2p_v_query_ok(str $qs, bool $ignore_timestamp) Verifies s2p-v in a given query string argument; from a custom URL for success. public static int paypal_start_time(str $period1, str $period3) Calculates start date for a Recurring Payment Profile. public static bool paypal_tax_may_apply() Determines whether or not Tax may apply. ( 8 Methods )Method Detail s2member-pro\includes\classes\gateways\paypal\paypal-utilities.inc.php at line #210 paypal_ajax_tax() public static null paypal_ajax_tax() Handles the return of Tax for Pro Forms, via AJAX; through a JSON object. Since: 1.5 Returns: null - Or exits script execution after returning data for AJAX caller. Todo: Check the use of strip_tags ( ) in this routine? Continue optimizing this routine with empty ( ) and isset ( ) . Candidate for the use of ifsetor( ) ? [ back to top ] s2member-pro\includes\classes\gateways\paypal\paypal-utilities.inc.php at line #401 paypal_apply_coupon() public static array|str paypal_apply_coupon(array $attr, str $coupon_code, str $return_response_or_attr, str $return_reponse_or_attr) Checks to see if a Coupon Code was supplied, and if so; what does it provide? Since: 1.5 Parameters: array $attr - An array of Pro Form Attributes. str $coupon_code - Optional. A possible Coupon Code supplied by the Customer. str $return_reponse_or_attr - Optional. One of response|attr. Defaults to attr. Returns: array|str - Original array, with prices and description modified when/if a Coupon Code is accepted. Or, if $return_response_or_attr === "response" , return a string response, indicating status. Todo: See if it's possible to simplify this routine. Add support for tracking Coupon Code usage. Add support for a fixed number of uses. [ back to top ] s2member-pro\includes\classes\gateways\paypal\paypal-utilities.inc.php at line #263 paypal_cost() public static array paypal_cost(int|str $trial_sub_total, int|str $sub_total, str $state, str $country, int|str $zip, str $currency, str $desc) Handles all cost calculations for PayPal®. Returns an associative array with a possible Percentage Rate, along with the calculated Tax Amount. Tax calculations are based on State/Province, Country, and/or Zip Code. Updated to support multiple data fields in it's return value. Since: 1.5 Parameters: int|str $trial_sub_total - Optional. A numeric Amount/cost of a possible Initial/Trial being offered. int|str $sub_total - Optional. A numeric Amount/cost of the purchase and/or Regular Period. str $state - Optional. The State/Province where the Customer is billed. str $country - Optional. The Country where the Customer is billed. int|str $zip - Optional. The Postal/Zip Code where the Customer is billed. str $currency - Optional. Expects a 3 character Currency Code. str $desc - Optional. Description of the sale. Returns: array - Array of calculations. Todo: Add support for Zip + 4 syntax? [ back to top ] s2member-pro\includes\classes\gateways\paypal\paypal-utilities.inc.php at line #188 paypal_maestro_solo_2gbp() public static array paypal_maestro_solo_2gbp(array $attr, str $card_type) Handles currency conversions for Maestro/Solo cards. PayPal® requires Maestro/Solo to be charged in GBP. So if a site owner is using another currency ( i.e. something NOT in GBP ), we have to convert all of the charge amounts dynamically. Coupon Codes should always be applied before this conversion takes place. That way a site owner's configuration remains adequate. Tax rates should be applied after this conversion takes place. Since: 110531 Parameters: array $attr - An array of PayPal® Pro Form Attributes. str $card_type - The Card Type ( i.e. Billing Method ) selected. Returns: array - The same array of Pro Form Attributes, with possible currency conversions. [ back to top ] s2member-pro\includes\classes\gateways\paypal\paypal-utilities.inc.php at line #55 paypal_s2p_v_generate() public static str paypal_s2p_v_generate(str $url) Adds the s2p-v variable onto the end of a custom URL for success. Since: 1.5 Parameters: str $url - A full URL to append the s2p-v variable onto. Returns: str - A full URL with the s2p-v query string argument as well. [ back to top ] s2member-pro\includes\classes\gateways\paypal\paypal-utilities.inc.php at line #74 paypal_s2p_v_query_ok() public static bool paypal_s2p_v_query_ok(str $qs, bool $ignore_timestamp) Verifies s2p-v in a given query string argument; from a custom URL for success. Since: 1.5 Parameters: str $qs - Optional. Defaults to $_SERVER [ "QUERY_STRING" ] . Returns: bool - True if the query string is OK/verified, else false. [ back to top ] s2member-pro\includes\classes\gateways\paypal\paypal-utilities.inc.php at line #105 paypal_start_time() public static int paypal_start_time(str $period1, str $period3) Calculates start date for a Recurring Payment Profile. Since: 1.5 Parameters: str $period1 - Optional. A "Period Term" combination. Defaults to 0 D. str $period3 - Optional. A "Period Term" combination. Defaults to 0 D. Returns: int - The start time, a Unix timestamp. [ back to top ] s2member-pro\includes\classes\gateways\paypal\paypal-utilities.inc.php at line #160 paypal_tax_may_apply() public static bool paypal_tax_may_apply() Determines whether or not Tax may apply. Since: 1.5 Returns: bool - True if Tax may apply, else false. [ back to top ] Source Code Documentation Packages ( Overview ) Classes Deprecated Todo Index Class Summary Classes Hooks/Filters Field Summary | Method Summary | Field Detail | Method Detail(!-- :: s-words --)

Statistics: Posted by System Robot — August 15th, 2011, 1:33 pm


]]>
2011-07-11T17:23:28-05:00 http://www.primothemes.com/forums/viewtopic.php?t=12774&p=27438#p27438 <![CDATA[s2Member v110710 / Package Class: s2Member...]]>
s2Member v110710
Package Class: s2Member\PayPal\c_ws_plugin__s2member_pro_paypal_utilities
Docs updated: July 11, 2011, 6:23 pm

Open for public discussion.
(!-- s-words :: --)Source Code Documentation Packages ( Overview ) Classes Deprecated Todo Index Class Summary Classes Hooks/Filters Field Summary | Method Summary | Field Detail | Method Detail Package s2Member\PayPal s2member-pro\includes\classes\gateways\paypal\paypal-utilities.inc.php at line #44 Class c_ws_plugin__s2member_pro_paypal_utilities c_ws_plugin__s2member_pro_paypal_utilities public class c_ws_plugin__s2member_pro_paypal_utilities PayPal® utilities. Since: 1.5 ( 8 Methods )Method Summary public static null paypal_ajax_tax() Handles the return of Tax for Pro Forms, via AJAX; through a JSON object. public static array|str paypal_apply_coupon(array $attr, str $coupon_code, str $return_response_or_attr, str $return_reponse_or_attr) Checks to see if a Coupon Code was supplied, and if so; what does it provide? public static array paypal_cost(int|str $trial_sub_total, int|str $sub_total, str $state, str $country, int|str $zip, str $currency, str $desc) Handles all cost calculations for PayPal®. public static array paypal_maestro_solo_2gbp(array $attr, str $card_type) Handles currency conversions for Maestro/Solo cards. public static str paypal_s2p_v_generate(str $url) Adds the s2p-v variable onto the end of a custom URL for success. public static bool paypal_s2p_v_query_ok(str $qs, bool $ignore_timestamp) Verifies s2p-v in a given query string argument; from a custom URL for success. public static int paypal_start_time(str $period1, str $period3) Calculates start date for a Recurring Payment Profile. public static bool paypal_tax_may_apply() Determines whether or not Tax may apply. ( 8 Methods )Method Detail s2member-pro\includes\classes\gateways\paypal\paypal-utilities.inc.php at line #210 paypal_ajax_tax() public static null paypal_ajax_tax() Handles the return of Tax for Pro Forms, via AJAX; through a JSON object. Since: 1.5 Returns: null - Or exits script execution after returning data for AJAX caller. Todo: Check the use of strip_tags ( ) in this routine? Continue optimizing this routine with empty ( ) and isset ( ) . Candidate for the use of ifsetor( ) ? [ back to top ] s2member-pro\includes\classes\gateways\paypal\paypal-utilities.inc.php at line #401 paypal_apply_coupon() public static array|str paypal_apply_coupon(array $attr, str $coupon_code, str $return_response_or_attr, str $return_reponse_or_attr) Checks to see if a Coupon Code was supplied, and if so; what does it provide? Since: 1.5 Parameters: array $attr - An array of Pro Form Attributes. str $coupon_code - Optional. A possible Coupon Code supplied by the Customer. str $return_reponse_or_attr - Optional. One of response|attr. Defaults to attr. Returns: array|str - Original array, with prices and description modified when/if a Coupon Code is accepted. Or, if $return_response_or_attr === "response" , return a string response, indicating status. Todo: See if it's possible to simplify this routine. Add support for tracking Coupon Code usage. Add support for a fixed number of uses. [ back to top ] s2member-pro\includes\classes\gateways\paypal\paypal-utilities.inc.php at line #263 paypal_cost() public static array paypal_cost(int|str $trial_sub_total, int|str $sub_total, str $state, str $country, int|str $zip, str $currency, str $desc) Handles all cost calculations for PayPal®. Returns an associative array with a possible Percentage Rate, along with the calculated Tax Amount. Tax calculations are based on State/Province, Country, and/or Zip Code. Updated to support multiple data fields in it's return value. Since: 1.5 Parameters: int|str $trial_sub_total - Optional. A numeric Amount/cost of a possible Initial/Trial being offered. int|str $sub_total - Optional. A numeric Amount/cost of the purchase and/or Regular Period. str $state - Optional. The State/Province where the Customer is billed. str $country - Optional. The Country where the Customer is billed. int|str $zip - Optional. The Postal/Zip Code where the Customer is billed. str $currency - Optional. Expects a 3 character Currency Code. str $desc - Optional. Description of the sale. Returns: array - Array of calculations. Todo: Add support for Zip + 4 syntax? [ back to top ] s2member-pro\includes\classes\gateways\paypal\paypal-utilities.inc.php at line #188 paypal_maestro_solo_2gbp() public static array paypal_maestro_solo_2gbp(array $attr, str $card_type) Handles currency conversions for Maestro/Solo cards. PayPal® requires Maestro/Solo to be charged in GBP. So if a site owner is using another currency ( i.e. something NOT in GBP ), we have to convert all of the charge amounts dynamically. Coupon Codes should always be applied before this conversion takes place. That way a site owner's configuration remains adequate. Tax rates should be applied after this conversion takes place. Since: 110531 Parameters: array $attr - An array of PayPal® Pro Form Attributes. str $card_type - The Card Type ( i.e. Billing Method ) selected. Returns: array - The same array of Pro Form Attributes, with possible currency conversions. [ back to top ] s2member-pro\includes\classes\gateways\paypal\paypal-utilities.inc.php at line #55 paypal_s2p_v_generate() public static str paypal_s2p_v_generate(str $url) Adds the s2p-v variable onto the end of a custom URL for success. Since: 1.5 Parameters: str $url - A full URL to append the s2p-v variable onto. Returns: str - A full URL with the s2p-v query string argument as well. [ back to top ] s2member-pro\includes\classes\gateways\paypal\paypal-utilities.inc.php at line #74 paypal_s2p_v_query_ok() public static bool paypal_s2p_v_query_ok(str $qs, bool $ignore_timestamp) Verifies s2p-v in a given query string argument; from a custom URL for success. Since: 1.5 Parameters: str $qs - Optional. Defaults to $_SERVER [ "QUERY_STRING" ] . Returns: bool - True if the query string is OK/verified, else false. [ back to top ] s2member-pro\includes\classes\gateways\paypal\paypal-utilities.inc.php at line #105 paypal_start_time() public static int paypal_start_time(str $period1, str $period3) Calculates start date for a Recurring Payment Profile. Since: 1.5 Parameters: str $period1 - Optional. A "Period Term" combination. Defaults to 0 D. str $period3 - Optional. A "Period Term" combination. Defaults to 0 D. Returns: int - The start time, a Unix timestamp. [ back to top ] s2member-pro\includes\classes\gateways\paypal\paypal-utilities.inc.php at line #160 paypal_tax_may_apply() public static bool paypal_tax_may_apply() Determines whether or not Tax may apply. Since: 1.5 Returns: bool - True if Tax may apply, else false. [ back to top ] Source Code Documentation Packages ( Overview ) Classes Deprecated Todo Index Class Summary Classes Hooks/Filters Field Summary | Method Summary | Field Detail | Method Detail(!-- :: s-words --)

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


]]>
2011-07-11T15:07:17-05:00 http://www.primothemes.com/forums/viewtopic.php?t=12774&p=26819#p26819 <![CDATA[s2Member v110710 / Package Class: s2Member...]]>
s2Member v110710
Package Class: s2Member\PayPal\c_ws_plugin__s2member_pro_paypal_utilities
Docs updated: July 11, 2011, 4:07 pm

Open for public discussion.
(!-- s-words :: --)Source Code Documentation Packages ( Overview ) Classes Deprecated Todo Index Class Summary Classes Hooks/Filters Field Summary | Method Summary | Field Detail | Method Detail Package s2Member\PayPal s2member-pro\includes\classes\gateways\paypal\paypal-utilities.inc.php at line #44 Class c_ws_plugin__s2member_pro_paypal_utilities c_ws_plugin__s2member_pro_paypal_utilities public class c_ws_plugin__s2member_pro_paypal_utilities PayPal® utilities. Since: 1.5 ( 8 Methods )Method Summary public static null paypal_ajax_tax() Handles the return of Tax for Pro Forms, via AJAX; through a JSON object. public static array|str paypal_apply_coupon(array $attr, str $coupon_code, str $return_response_or_attr, str $return_reponse_or_attr) Checks to see if a Coupon Code was supplied, and if so; what does it provide? public static array paypal_cost(int|str $trial_sub_total, int|str $sub_total, str $state, str $country, int|str $zip, str $currency, str $desc) Handles all cost calculations for PayPal®. public static array paypal_maestro_solo_2gbp(array $attr, str $card_type) Handles currency conversions for Maestro/Solo cards. public static str paypal_s2p_v_generate(str $url) Adds the s2p-v variable onto the end of a custom URL for success. public static bool paypal_s2p_v_query_ok(str $qs, bool $ignore_timestamp) Verifies s2p-v in a given query string argument; from a custom URL for success. public static int paypal_start_time(str $period1, str $period3) Calculates start date for a Recurring Payment Profile. public static bool paypal_tax_may_apply() Determines whether or not Tax may apply. ( 8 Methods )Method Detail s2member-pro\includes\classes\gateways\paypal\paypal-utilities.inc.php at line #210 paypal_ajax_tax() public static null paypal_ajax_tax() Handles the return of Tax for Pro Forms, via AJAX; through a JSON object. Since: 1.5 Returns: null - Or exits script execution after returning data for AJAX caller. Todo: Check the use of strip_tags ( ) in this routine? Continue optimizing this routine with empty ( ) and isset ( ) . Candidate for the use of ifsetor( ) ? [ back to top ] s2member-pro\includes\classes\gateways\paypal\paypal-utilities.inc.php at line #401 paypal_apply_coupon() public static array|str paypal_apply_coupon(array $attr, str $coupon_code, str $return_response_or_attr, str $return_reponse_or_attr) Checks to see if a Coupon Code was supplied, and if so; what does it provide? Since: 1.5 Parameters: array $attr - An array of Pro Form Attributes. str $coupon_code - Optional. A possible Coupon Code supplied by the Customer. str $return_reponse_or_attr - Optional. One of response|attr. Defaults to attr. Returns: array|str - Original array, with prices and description modified when/if a Coupon Code is accepted. Or, if $return_response_or_attr === "response" , return a string response, indicating status. Todo: See if it's possible to simplify this routine. Add support for tracking Coupon Code usage. Add support for a fixed number of uses. [ back to top ] s2member-pro\includes\classes\gateways\paypal\paypal-utilities.inc.php at line #263 paypal_cost() public static array paypal_cost(int|str $trial_sub_total, int|str $sub_total, str $state, str $country, int|str $zip, str $currency, str $desc) Handles all cost calculations for PayPal®. Returns an associative array with a possible Percentage Rate, along with the calculated Tax Amount. Tax calculations are based on State/Province, Country, and/or Zip Code. Updated to support multiple data fields in it's return value. Since: 1.5 Parameters: int|str $trial_sub_total - Optional. A numeric Amount/cost of a possible Initial/Trial being offered. int|str $sub_total - Optional. A numeric Amount/cost of the purchase and/or Regular Period. str $state - Optional. The State/Province where the Customer is billed. str $country - Optional. The Country where the Customer is billed. int|str $zip - Optional. The Postal/Zip Code where the Customer is billed. str $currency - Optional. Expects a 3 character Currency Code. str $desc - Optional. Description of the sale. Returns: array - Array of calculations. Todo: Add support for Zip + 4 syntax? [ back to top ] s2member-pro\includes\classes\gateways\paypal\paypal-utilities.inc.php at line #188 paypal_maestro_solo_2gbp() public static array paypal_maestro_solo_2gbp(array $attr, str $card_type) Handles currency conversions for Maestro/Solo cards. PayPal® requires Maestro/Solo to be charged in GBP. So if a site owner is using another currency ( i.e. something NOT in GBP ), we have to convert all of the charge amounts dynamically. Coupon Codes should always be applied before this conversion takes place. That way a site owner's configuration remains adequate. Tax rates should be applied after this conversion takes place. Since: 110531 Parameters: array $attr - An array of PayPal® Pro Form Attributes. str $card_type - The Card Type ( i.e. Billing Method ) selected. Returns: array - The same array of Pro Form Attributes, with possible currency conversions. [ back to top ] s2member-pro\includes\classes\gateways\paypal\paypal-utilities.inc.php at line #55 paypal_s2p_v_generate() public static str paypal_s2p_v_generate(str $url) Adds the s2p-v variable onto the end of a custom URL for success. Since: 1.5 Parameters: str $url - A full URL to append the s2p-v variable onto. Returns: str - A full URL with the s2p-v query string argument as well. [ back to top ] s2member-pro\includes\classes\gateways\paypal\paypal-utilities.inc.php at line #74 paypal_s2p_v_query_ok() public static bool paypal_s2p_v_query_ok(str $qs, bool $ignore_timestamp) Verifies s2p-v in a given query string argument; from a custom URL for success. Since: 1.5 Parameters: str $qs - Optional. Defaults to $_SERVER [ "QUERY_STRING" ] . Returns: bool - True if the query string is OK/verified, else false. [ back to top ] s2member-pro\includes\classes\gateways\paypal\paypal-utilities.inc.php at line #105 paypal_start_time() public static int paypal_start_time(str $period1, str $period3) Calculates start date for a Recurring Payment Profile. Since: 1.5 Parameters: str $period1 - Optional. A "Period Term" combination. Defaults to 0 D. str $period3 - Optional. A "Period Term" combination. Defaults to 0 D. Returns: int - The start time, a Unix timestamp. [ back to top ] s2member-pro\includes\classes\gateways\paypal\paypal-utilities.inc.php at line #160 paypal_tax_may_apply() public static bool paypal_tax_may_apply() Determines whether or not Tax may apply. Since: 1.5 Returns: bool - True if Tax may apply, else false. [ back to top ] Source Code Documentation Packages ( Overview ) Classes Deprecated Todo Index Class Summary Classes Hooks/Filters Field Summary | Method Summary | Field Detail | Method Detail(!-- :: s-words --)

Statistics: Posted by System Robot — July 11th, 2011, 3:07 pm


]]>
2011-07-09T05:29:52-05:00 http://www.primothemes.com/forums/viewtopic.php?t=12774&p=25068#p25068 <![CDATA[s2Member v111220 / Package Class: s2Member...]]>
s2Member v111220
Package Class: s2Member\PayPal\c_ws_plugin__s2member_pro_paypal_utilities
Docs updated: December 20, 2011, 9:47 am

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

Statistics: Posted by System Robot — July 9th, 2011, 5:29 am


]]>