Source Code Documentation


pro\s2member-pro\includes\menu-pages\paypal-ops-detail-rows.inc.php


  1. <?php
  2. /**
  3. * Menu page for s2Member Pro (PayPal® option detail rows).
  4. *
  5. * Copyright: © 2009-2011
  6. * {@link http://www.websharks-inc.com/ WebSharks, Inc.}
  7. * (coded in the USA)
  8. *
  9. * This WordPress® plugin (s2Member Pro) is comprised of two parts:
  10. *
  11. * o (1) Its PHP code is licensed under the GPL license, as is WordPress®.
  12. * You should have received a copy of the GNU General Public License,
  13. * along with this software. In the main directory, see: /licensing/
  14. * If not, see: {@link http://www.gnu.org/licenses/}.
  15. *
  16. * o (2) All other parts of (s2Member Pro); including, but not limited to:
  17. * the CSS code, some JavaScript code, images, and design;
  18. * are licensed according to the license purchased.
  19. * See: {@link http://www.s2member.com/prices/}
  20. *
  21. * Unless you have our prior written consent, you must NOT directly or indirectly license,
  22. * sub-license, sell, resell, or provide for free; part (2) of the s2Member Pro Module;
  23. * or make an offer to do any of these things. All of these things are strictly
  24. * prohibited with part (2) of the s2Member Pro Module.
  25. *
  26. * Your purchase of s2Member Pro includes free lifetime upgrades via s2Member.com
  27. * (i.e. new features, bug fixes, updates, improvements); along with full access
  28. * to our video tutorial library: {@link http://www.s2member.com/videos/}
  29. *
  30. * @package s2Member\Menu_Pages
  31. * @since 1.5
  32. */
  33. if (realpath (__FILE__) === realpath ($_SERVER["SCRIPT_FILENAME"]))
  34. exit("Do not access this file directly.");
  35.  
  36. if (!class_exists ("c_ws_plugin__s2member_pro_menu_page_paypal_ops_detail_rows"))
  37. {
  38. /**
  39. * Menu page for s2Member Pro (PayPal® option detail rows).
  40. *
  41. * @package s2Member\Menu_Pages
  42. * @since 110531
  43. */
  44. class c_ws_plugin__s2member_pro_menu_page_paypal_ops_detail_rows
  45. {
  46. public function __construct ()
  47. {
  48. echo '<tr>' . "\n";
  49.  
  50. echo '<th>' . "\n";
  51. echo '<label for="ws-plugin--s2member-pro-paypal-checkout-rdp">' . "\n";
  52. echo 'PayPal® Pro Forms / Recurring Profile Behavior:<br />' . "\n";
  53. echo '(only affects first payment of Recurring Profiles)<br />' . "\n";
  54. echo '</label>' . "\n";
  55. echo '</th>' . "\n";
  56.  
  57. echo '</tr>' . "\n";
  58. echo '<tr>' . "\n";
  59.  
  60. echo '<td>' . "\n";
  61. echo '<select name="ws_plugin__s2member_pro_paypal_checkout_rdp" id="ws-plugin--s2member-pro-paypal-checkout-rdp">' . "\n";
  62. echo '<option value="0"' . ((!$GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["pro_paypal_checkout_rdp"]) ? ' selected="selected"' : '') . '>Consolidate w/ Recurring Profile (1st payment charged immediately)</option>' . "\n";
  63. echo '<option value="1"' . (($GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["pro_paypal_checkout_rdp"]) ? ' selected="selected"' : '') . '>Real-Time / Direct Pay (1st payment charged immediately, in real-time)</option>' . "\n";
  64. echo '</select><br />' . "\n";
  65. echo 'Applies only to "Subscriptions" (aka: Recurring Profiles). [ <a href="#" onclick="alert(\'This setting is ignored when/if you offer a Free Trial Period. This setting only affects PayPal® Pro Forms that use a `Subscription` configuration with an immediate charge. In other words, if your PayPal® Pro Form is configured to bill on a recurring basis (starting the day of signup), this setting controls the way in which s2Member handles the first payment of the Customer\\\'s Paid Subscription (aka: Recurring Profile).\\n\\nWe recommend: `Consolidate w/ Recurring Profile`, because this keeps all charges associated with a particular Customer organized in your PayPal® account. No matter which option you choose, a first Initial Payment (when applicable), will always be charged immediately. However, in cases where it is critical that a Customer NOT gain access until their first payment has been fully captured, choose: `Real-Time / Direct Pay`, which tells s2Member to authorize/capture the first payment in real-time during checkout, instead of consolidating it into the Recurring Profile.\\n\\nHere Is A Breakdown For You\\n\\n— Consolidate w/ Recurring Profile —\\ns2Member creates a Recurring Profile with an Initial Payment amount, to be charged immediately. PayPal® generates the Recurring Profile, returns a successful response to s2Member and the Customer gains access. Moments later (usually within 30 seconds), PayPal® will authorize/capture the first payment. If the first payment is declined, s2Member will revoke the Customer\\\'s access immediately.\\n\\n— Real-Time / Direct Pay (mission critical) —\\ns2Member charges the first payment separately (in real-time during checkout), leaving no possibility for the Customer to gain access until the first charge is fully captured. A Recurring Profile is also generated, which handles any future billing. You will have two billing records in your PayPal® account. One for the Initial Payment, and another for the Recurring Profile.\'); return false;">full details</a> ]' . "\n";
  66. echo '</td>' . "\n";
  67.  
  68. echo '</tr>' . "\n";
  69. }
  70. }
  71. }
  72.  
  73. new c_ws_plugin__s2member_pro_menu_page_paypal_ops_detail_rows ();
  74. ?>

pro\s2member-pro\includes\menu-pages\paypal-ops-detail-rows.inc.php

Source Code Documentation