<?php
add_action("ws_plugin__s2member_during_paypal_notify_during_subscr_eot_before_demote", "my_custom_function");
function my_custom_function($vars = array())
{
if($vars["paypal"]["txn_type"] === "recurring_payment_suspended_due_to_max_failed_payment")
$vars["__refs"]["eot_del_type"] = "ipn-cancellation-failed-payments-demotion";
}
?>
Statistics: Posted by Jason Caldwell — May 23rd, 2011, 3:38 am
(preg_match ("/^(subscr_eot|recurring_payment_expired|recurring_payment_suspended_due_to_max_failed_payment)$/i",$paypal["txn_type"]) && ($recurring = 1))/**/
$paypal["s2member_log"][] = "s2Member txn_type identified as (subscr_eot|recurring_payment_expired|recurring_payment_suspended_due_to_max_failed_payment) - or - recurring_payment_profile_cancel w/ initial_payment_status (failed).";
$eot_del_type = ($is_refund_or_reversal) ? "ipn-refund-reversal-demotion" : "ipn-cancellation-expiration-demotion";
Statistics: Posted by toddz88 — May 20th, 2011, 6:49 pm
user-removal-deletion ( i.e. manual removal/deletion )
auto-eot-cancellation-expiration-demotion
auto-eot-cancellation-expiration-deletion
ipn-cancellation-expiration-demotion
ipn-cancellation-expiration-deletion
ipn-refund-reversal-demotion
ipn-refund-reversal-deletion
Statistics: Posted by toddz88 — May 20th, 2011, 2:12 am
An EOT is triggered immediately when you refund a Customer, when a Customer forces a chargeback to occur, or when a paid Subscription ends naturally ( i.e. expires ), and your Payment Gateway sends s2Member an EOT ( End Of Term ) response.
Statistics: Posted by toddz88 — May 19th, 2011, 6:27 pm
Statistics: Posted by Jason Caldwell — May 18th, 2011, 6:58 pm
Statistics: Posted by toddz88 — May 17th, 2011, 12:58 pm