[solved] How to modify expiration date via FEU API
Posted: Thu Aug 06, 2009 6:53 pm
I've got a UDT that needs to update a User's expiration date based on a subscription payment. The property I want to change is the actual FEU expiration date, not a user property.
I add the length of the subscription in seconds to the current time:
This doesn't throw an error, but it doesn't change the expiration date either.
What is a clean method of changing the user expiration date for subscription accounts? Anybody?
I add the length of the subscription in seconds to the current time:
Code: Select all
$subscription_length = $years * 31557600; // seconds in a year
$date = time()+$subscription_length;
$result = $feuser->SetUserProperty('exipires',$date)
What is a clean method of changing the user expiration date for subscription accounts? Anybody?