subscriptionStatus / Customer Status Java
What is the best way to check if a customer has an active subscription plan using java?
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
Support Staff 1 Posted by Marc Guyer on 04 Sep, 2012 08:41 PM
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...
Dean closed this discussion on 23 Jan, 2013 04:35 PM.