<?php
$user_id = "1";
$subscr_id = get_user_option("s2member_subscr_id", $user_id);
$paypal = array ("METHOD" => "ManageRecurringPaymentsProfileStatus", "ACTION" => "Suspend", "PROFILEID" => $subscr_id);
if (($paypal = c_ws_plugin__s2member_paypal_utilities::paypal_api_response ($paypal)) && !$paypal["__error"])
echo 'Your account has been placed into a suspended state.';
?>
- Cancel - Only profiles in Active or Suspended state can be canceled.
- Suspend - Only profiles in Active state can be suspended.
- Reactivate - Only profiles in a suspended state can be reactivated.
Statistics: Posted by Jason Caldwell — July 17th, 2011, 12:17 am
Statistics: Posted by drbyte — July 13th, 2011, 9:08 pm
<?php
$paypal = array(); // Your input array of data to send to the PayPal API.
if (($paypal = c_ws_plugin__s2member_paypal_utilities::paypal_api_response ($paypal)) && empty($paypal["__error"]))
print_r($paypal); // Output array. See PayPal API docs for response variables that come from PayPal.
?>
Statistics: Posted by Jason Caldwell — July 13th, 2011, 2:55 pm
Statistics: Posted by drbyte — July 11th, 2011, 8:47 am