Closed okancelik34 closed 8 years ago
Use nonRenewing.getStatus(callback)
...
As explained in the README, do something like this:
nonRenewing.getStatus(function(error, status) {
if (error) {
console.error("Failed to load subscription status: " + error);
b();
}
else if (status.subscriber)
a();
else
b();
});
are there any code sample if user subscriber do a function else do b function ? please share?