hie

vishal's Avatar

vishal

03 Aug, 2011 10:43 AM

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. Support Staff 1 Posted by Marc Guyer on 03 Aug, 2011 03:06 PM

    Marc Guyer's Avatar

    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. 2 Posted by vishal on 04 Aug, 2011 04:54 AM

    vishal's Avatar

    Thanks for the quick reply MARC :)
    But i have solved the problem.
    Thanks.

  3. Marc Guyer closed this discussion on 04 Aug, 2011 03:15 PM.

Discussions are closed to public comments.
If you need help with Cheddar please start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

28 Mar, 2024 10:45 PM
24 Jan, 2024 08:33 AM
11 Jan, 2024 07:13 AM
30 Nov, 2023 02:07 AM
22 Nov, 2023 08:41 AM