Hook that fires on payment

Web Sharks:

I found this article which explains everything I need, pro-form templates plus collecting other variables.

However I am doing user modifications and this hook only fires on registration as far as I can tell.

ws_plugin__s2member_during_configure_user_registration

Is there a similar hook that fires on payment or modification? I didn’t find anything in your KB and the form $_POST variable doesn’t seem to be available when the s2member IPN is fired.

Thanks in advance,

Willy

Solved my own problem -- code from the lead programmer

ws_plugin__s2member_pro_paypal_checkout_post_attr

<?php
add_filter('ws_plugin__s2member_pro_paypal_checkout_post_attr', function ($attr) {
    if (!is_user_logged_in() || empty($_POST['s2member_pro_paypal_checkout'])) {
        return $attr; // Nothing to do here.
    }
    $user_id     = get_current_user_id();
    $post_vars = stripslashes_deep($_POST['s2member_pro_paypal_checkout']);

    if ($user_id && $post_vars) {
        // Your custom code here.
    }
    return $attr;
});