Skip to content

Commit

Permalink
Merge pull request #1200 from wpsharks/add-payment-hook
Browse files Browse the repository at this point in the history
Add hook ws_plugin__s2member_during_paypal_notify_during_subscr_or_wa_payment
  • Loading branch information
Cristián Lávaque authored Nov 20, 2020
2 parents 2402f12 + 5842e94 commit 22b6bf4
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -797,6 +797,9 @@ public static function cp($vars = array() /* Conditional phase for ``c_ws_plugin
}
$paypal['s2member_log'][] = 'Payment Notification Emails have been processed.';
}
foreach(array_keys(get_defined_vars()) as $__v) $__refs[$__v] =& $$__v;
do_action('ws_plugin__s2member_during_paypal_notify_during_subscr_or_wa_payment', get_defined_vars());
unset($__refs, $__v);
}
else if($processing // Process a payment now? Special cases for web_accept and/or Proxy requests with `subscr-signup-as-subscr-payment`.
&& (preg_match('/^web_accept$/i', $paypal['txn_type']) || ($_REQUEST['s2member_paypal_proxy'] && preg_match('/subscr-signup-as-subscr-payment/', $_REQUEST['s2member_paypal_proxy_use']) && $paypal['txn_id'] && $paypal['mc_gross'] > 0))
Expand Down

0 comments on commit 22b6bf4

Please sign in to comment.