Hello ,
I need a suggestion on one problem. iam using some plans in my site.But at one point user have a option to delete his role in site.so at that time i need to cancel the subscription for that particuler user.I read the "Cancel a Customer's Subscription" article but its not clear to me. Here two parameters are passing to the function "cancelSubscription($code, $id = null)" I want to know how can i get the $code from cheddar getter site and what is this $id here.You suggest that its a "string|null $id CG id for the customer",what is the meaning of CG here.Please tell me in details how to cancel the subscription for particuler user in php.Hope to hear soon from your side.
Many Thanx,
Vishal Verma

#1 Posted by Marc Guyer Support staff on 03 Aug, 2011 03:06 PM
The $code is the code used when signing up the customer initially. Typically, it's the unique id of the user in your own system. The $id is CG's own unique id for the customer. The $id is almost never used.
#2 Posted by vishal on 04 Aug, 2011 04:54 AM
Thanks for the quick reply MARC :)
But i have solved the problem.
Thanks.
Marc Guyer closed this discussion on 04 Aug, 2011 03:15 PM.