Skip to content

Commit

Permalink
PayPal sandbox warning and suggestion. See: #891
Browse files Browse the repository at this point in the history
  • Loading branch information
jaswsinc committed Feb 25, 2016
1 parent 5bc5f5f commit 9a0a8f6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions s2member/includes/menu-pages/paypal-ops.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,8 @@ public function __construct()

echo '<td>'."\n";
echo '<input type="radio" name="ws_plugin__s2member_paypal_sandbox" id="ws-plugin--s2member-paypal-sandbox-0" value="0"'.((!$GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["paypal_sandbox"]) ? ' checked="checked"' : '').' /> <label for="ws-plugin--s2member-paypal-sandbox-0">No</label> &nbsp;&nbsp;&nbsp; <input type="radio" name="ws_plugin__s2member_paypal_sandbox" id="ws-plugin--s2member-paypal-sandbox-1" value="1"'.(($GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["paypal_sandbox"]) ? ' checked="checked"' : '').' /> <label for="ws-plugin--s2member-paypal-sandbox-1">Yes, enable support for Sandbox testing.</label><br />'."\n";
echo '<em>Only enable this if you\'ve provided Sandbox credentials above.<br />This puts the API, IPN, PDT and Form/Button Generators all into Sandbox mode.<br />See: <a href="http://s2member.com/r/paypal-developers/" target="_blank" rel="external">PayPal Developers</a></em>'."\n";
echo '<em>Only enable this if you\'ve provided Sandbox credentials above.<br />This puts the API, IPN, PDT and Form/Button Generators all into Sandbox mode. See: <a href="http://s2member.com/r/paypal-developers/" target="_blank" rel="external">PayPal Developers</a></em><br />'."\n";
echo '<em><strong>Warning:</strong> The PayPal Sandbox doesn\'t always give you an accurate view of what will happen once you go live, and in fact it is sometimes buggy at best. For this reason, our strong recommendation is that instead of using Sandbox Mode to run tests, that you go live and run tests with low-dollar amounts; i.e., $0.01 transactions are possible with PayPal in live mode, and that is a better way to test your installation of s2Member.</em>'."\n";
echo '</td>'."\n";

echo '</tr>'."\n";
Expand Down Expand Up @@ -1098,4 +1099,4 @@ public function __construct()
}
}

new c_ws_plugin__s2member_menu_page_paypal_ops();
new c_ws_plugin__s2member_menu_page_paypal_ops();

0 comments on commit 9a0a8f6

Please sign in to comment.