subscriptionStatus / Customer Status Java

Derreck Nassar's Avatar

Derreck Nassar

04 Sep, 2012 02:02 PM

What is the best way to check if a customer has an active subscription plan using java?

  1. Support Staff 1 Posted by Marc Guyer on 04 Sep, 2012 08:41 PM

    Marc Guyer's Avatar

    Hi Derreck -- There are two ways of checking customer status. The API customer response and the quick status lookup for the hosted pages. The latter is documented here:

    http://support.cheddargetter.com/kb/hosted-payment-pages/hosted-pay...

    There isn't a Java example but I think you can get the idea from the PHP or Ruby examples. Perhaps you can contribute a Java example?

    The API way is to simply determine if the customer's current subscription is canceled. A customer's subscription is canceled if it has a canceledDatetime. One of the Java wrappers has a getCanceledDatetime() method:

    https://github.com/RusticiSoftware/CheddarClient/blob/master/src/co...

    The PHP wrapper does it like this:

    https://github.com/marcguyer/cheddargetter-client-php/blob/master/R...

  2. Dean closed this discussion on 23 Jan, 2013 04:35 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