Source Code Documentation


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


  1. <?php
  2. /**
  3. * Menu page for s2Member Pro (PayPal® option details).
  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_details"))
  37. {
  38. /**
  39. * Menu page for s2Member Pro (PayPal® option details).
  40. *
  41. * @package s2Member\Menu_Pages
  42. * @since 110531
  43. */
  44. class c_ws_plugin__s2member_pro_menu_page_paypal_ops_details
  45. {
  46. public function __construct ()
  47. {
  48. echo '<h3>PayPal® Pro Integration (<a href="#" onclick="jQuery(\'div#ws-plugin--s2member-paypal-pro-details\').toggle(); return false;" class="ws-dotted-link">please read</a>)</h3>' . "\n";
  49.  
  50. echo '<div id="ws-plugin--s2member-paypal-pro-details" style="display:none;">' . "\n";
  51. echo '<p><em><strong>*PayPal® Pro Integration*</strong> The s2Member Pro Module makes it possible for s2Member to use PayPal® Pro Forms (instead of standard PayPal® Buttons). PayPal® Pro Forms integrate seamlessly with WordPress® Shortcodes. This allows you to keep Customers on your site at all times, and it consolidates the Checkout / Registration steps into a single form that you can dress up just the way you like. If you would like to take advantage of PayPal® Pro integration, please supply your PayPal® API Username, Password, and Signature. You will need a <a href="http://www.s2member.com/paypal" target="_blank" rel="external">PayPal® Business Account, w/Pro Service</a>. PayPal® Pro accounts require a formal application, along with a small monthly fee. Once you have a PayPal® Pro account, you\'ll need access to your <a href="http://www.s2member.com/paypal-profile-api-access" target="_blank" rel="external">PayPal® API Credentials</a>. Log into your PayPal® Pro account, and navigate to <code>Profile -› API Access (or Request API Credentials)</code>. You\'ll choose <code>(Request API Signature)</code>.</em></p>' . "\n";
  52. echo '<p><em><strong>*Recurring Billing*</strong> If you plan to use any of the ( `Subscription` ) options in the s2Member Form Generator for PayPal® Pro, you will ALSO need <a href="http://www.s2member.com/paypal-pro-recurring-payments-faqs" target="_blank" rel="external">Recurring Billing</a> enabled for your PayPal® Pro account. PayPal\'s Recurring Billing service for Pro accounts is <strong>required</strong> for all types of ( `Subscriptions` ), whether you intend for them to be recurring or not. However, it is NOT required for ( `Buy Now` ) functionality. The drop-down menus in the s2Member Form Generator, have been marked ( `Subscription` ) and ( `Buy Now` ) just for this reason. See: <code>s2Member -› PayPal® Pro Forms</code>. This way you can see which options will require the use of PayPal\'s Recurring Billing service. PayPal® will charge you a small monthly fee for their Recurring Billing service; which is an add-on for PayPal® Pro accounts.</em></p>' . "\n";
  53. echo (!is_multisite () || !c_ws_plugin__s2member_utils_conds::is_multisite_farm () || is_main_site ()) ? '<p><em><strong>*Secure Server*</strong> In order to comply with PayPal® and PCI Compliance policies, as set forth by major credit card companies; you will need to host all of your PayPal® Pro Forms on an SSL enabled site. Please check with your hosting provider to ask about obtaining an SSL certificate for your domain. Please note... when you create PayPal® Pro Forms with s2Member; you\'ll be supplied with WordPress® Shortcodes, which you\'ll insert into Posts/Pages of your choosing. These special Posts/Pages will need to be displayed in SSL mode, using links that start with (<code>https://</code>). &mdash; You can skip the SSL certificate during Sandbox testing. SSL is not required until you officially go live. Once you\'re live, you can add the Custom Field <code>s2member_force_ssl = yes</code> to any Post/Page.</em></p>' . "\n" : '<p><em><strong>*Secure Server*</strong> In order to comply with PayPal® and PCI Compliance policies, as set forth by major credit card companies; you will need to host all of your PayPal® Pro Forms on an SSL enabled page. When you create PayPal® Pro Forms with s2Member; you\'ll be supplied with WordPress® Shortcodes, which you\'ll insert into Posts/Pages of your choosing. These special Posts/Pages will need to be displayed in SSL mode, using links that start with (<code>https://</code>). You can add the Custom Field <code>s2member_force_ssl = yes</code> to any Post/Page that contains a Pro Form Shortcode. This tells s2Member to force those special Posts/Pages to be viewed over SSL at all times; no matter what.</em></p>' . "\n";
  54. echo (!is_multisite () || !c_ws_plugin__s2member_utils_conds::is_multisite_farm () || is_main_site ()) ? '<p><em><strong>*SSL Compatibility*</strong> Most themes available at <a href="http://www.s2member.com/r/themeforest/" target="_blank" rel="external">ThemeForest™</a> include full support for SSL, as does WordPress® itself. However, there are many themes/plugins that do NOT support SSL enabled Posts/Pages like they should. For this reason, you should be very careful when choosing a WordPress® theme to use with s2Member Pro. Otherwise, your visitors could see the famous "Secure/Insecure" warnings in Internet Explorer® browsers. With s2Member installed, you can add the Custom Field <code>s2member_force_ssl = yes</code> to any Post/Page. s2Member will buffer output on those special Posts/Pages, converting everything over to <code>https://</code> for you automatically, and forcing those specific Posts/Pages to be viewed over a secure SSL connection; so long as your server supports the https protocol.</em></p>' . "\n" : '';
  55. echo '<p><em><strong>*PayPal® Pro is NOT Absolutely Required*</strong> s2Member is very flexible. It is now possible to integrate Pro Forms without a PayPal® Pro account, whereby the enhanced Form Shortcodes that s2Member provides can be integrated ONLY with PayPal® Express Checkout. In other words, if you get declined for PayPal® Pro service, you can still use s2Member Pro Forms. Ask PayPal® to activate Express Checkout for you. (it\'s free). Once Express Checkout is enabled, you will have access to your <a href="http://www.s2member.com/paypal-profile-api-access" target="_blank" rel="external">PayPal® API Credentials</a>. Log into your PayPal® account, and navigate to <code>Profile -› API Access (or Request API Credentials)</code>. You\'ll choose <code>(Request API Signature)</code>. Now ... here is the tricky part; whenever you generate a Pro Form Shortcode with s2Member, be sure to change <code>accept="paypal,visa,mastercard,amex,discover,maestro,solo"</code> to just <code>accept="paypal"</code>; thereby excluding the on-site credit card processing functionality; which is available only with PayPal® Pro.</em></p>' . "\n";
  56. echo '</div>' . "\n";
  57.  
  58. echo '<div class="ws-menu-page-hr" style="margin-bottom:0;"></div>' . "\n";
  59. }
  60. }
  61. }
  62.  
  63. new c_ws_plugin__s2member_pro_menu_page_paypal_ops_details ();
  64. ?>

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

Source Code Documentation