// WARNING: Don't do this! if (paymentState == 1) { // User is in normal state } else { // Handle user in grace period # this would now be a bug }
if (paymentState == 0) { // Subscriber with payment pending } else if (paymentState == 1) { // Subscriber in good standing (paid) } else if (paymentState == 2) { // Subscriber in free trial }