<?php $time = get_user_option ("s2member_last_payment_time"); ?>
<?php
$user_id = 234;
$time = get_user_option ("s2member_last_payment_time", $user_id);
?>
Statistics: Posted by Jason Caldwell — March 23rd, 2011, 5:51 pm
<?php
$time = s2member_registration_time (); // ... first registration time ( free or otherwise ).
$time = s2member_paid_registration_time (); // ... first "paid" registration and/or upgrade time.
$time = s2member_paid_registration_time ("level1"); // ... first "paid" registration or upgrade time at Level#1.
$time = s2member_paid_registration_time ("level2"); // ... first "paid" registration or upgrade time at Level#2.
$time = s2member_paid_registration_time ("level3"); // ... first "paid" registration or upgrade time at Level#3.
$time = s2member_paid_registration_time ("level4"); // ... first "paid" registration or upgrade time at Level#4.
?>
Statistics: Posted by Jason Caldwell — March 23rd, 2011, 5:44 pm
<?php
$user = wp_get_current_user ();
$subscription_id = get_user_option ("s2member_subscr_id");
$authnet = array ("x_method" => "status", "x_subscription_id" => $subscription_id);
if (($authnet = c_ws_plugin__s2member_pro_authnet_utilities::authnet_arb_response ($authnet)) && !$authnet["__error"] && $authnet["subscription_status"])
{
echo $authnet["subscription_status"];
/* Possible values: active, expired, suspended, canceled, terminated */
}
?>
<?php
$user = wp_get_current_user ();
$subscription_id = get_user_option ("s2member_subscr_id");
$paypal = array ("METHOD" => "GetRecurringPaymentsProfileDetails", "PROFILEID" => $subscription_id);
if (($paypal = c_ws_plugin__s2member_paypal_utilities::paypal_api_response ($paypal)) && !$paypal["__error"])
{
print_r($paypal); /* A full list of details during development. */
/* Please consult the `/s2m-pro-extras/paypal-pro-api.pdf` file. */
}
?>
Statistics: Posted by Jason Caldwell — March 23rd, 2011, 5:40 pm
Statistics: Posted by Zachary — March 23rd, 2011, 2:08 pm