What if Stripe Billing had built-in entitlements and a simpler SDK?
// Get user subscription
const sub = await paylio
.getSubscription(userId);
// Check entitlements
if (sub.features.canExport) {
// allow export
}// Get customer first
const customer = await stripe
.customers.list({
email: user.email
});
// Then get subscriptions
const subs = await stripe
.subscriptions.list({
customer: customer.data[0].id
});
// No built-in entitlements
// Implement your own logicChoose Paylio if:
Choose Stripe Billing if:
Start with 100 free subscribers. Uses Stripe under the hood.
Get Started Free