Skip to content

Commit

Permalink
Merge pull request #931 from websharks/feature/877
Browse files Browse the repository at this point in the history
PR: feature/877
  • Loading branch information
jaswsinc committed Apr 15, 2016
2 parents ee361b6 + b5eec14 commit 0c6cfdc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitchange
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1460698120
1460699757
7 changes: 6 additions & 1 deletion s2member/includes/classes/sc-paypal-button-e.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,12 @@ public static function sc_paypal_button_encryption ($code = FALSE, $vars = FALSE
do_action("ws_plugin__s2member_before_sc_paypal_button_encryption", get_defined_vars ());
unset($__refs, $__v);

if ($GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["paypal_btn_encryption"] && $GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["paypal_business"] && $GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["paypal_api_username"])
if ($GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["paypal_btn_encryption"]
&& $GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["paypal_business"]
&& $GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["paypal_api_username"]
&& $GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["paypal_api_password"]
&& $GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["paypal_api_signature"]
) // Only if it is possible to connect to the PayPal API.
{
$cache = /* Are we caching? */ apply_filters("ws_plugin__s2member_sc_paypal_button_encryption_cache", true, get_defined_vars ());

Expand Down
2 changes: 1 addition & 1 deletion s2member/includes/syscon.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ function ws_plugin__s2member_configure_options_and_their_defaults($options = FAL
$default_options['paypal_api_password'] = '';
$default_options['paypal_api_signature'] = '';
$default_options['paypal_identity_token'] = '';
$default_options['paypal_btn_encryption'] = '0';
$default_options['paypal_btn_encryption'] = '1';

$default_options['paypal_payflow_api_username'] = '';
$default_options['paypal_payflow_api_partner'] = 'PayPal';
Expand Down

0 comments on commit 0c6cfdc

Please sign in to comment.