Billing API only returns Active Subscription.
const billingCheck = await billing.check({
plans: [MONTHLY_PLAN, ANNUAL_PLAN],
isTest: true,
});
Returns
{
"hasActivePayment": true,
"oneTimePurchases": [],
"appSubscriptions": [
{
"id": "gid://shopify/AppSubscription/xxxxx",
"name": "Annual subscription",
"test": true,
"lineItems": [
{
"id": "gid://shopify/AppSubscriptionLineItem/xxxxx?v=1&index=0",
"plan": {
"pricingDetails": {
"price": {
"amount": "19.0",
"currencyCode": "USD"
},
"interval": "ANNUAL",
"discount": null
}
}
}
]
}
]
}
So what if my customer cancel there subscription before the month/year ends but I still want to give them pro features till the month/year ends.
and this **check Billing API** returns no information about canceled Subscription
how I get that info and update my UI
do I have to save information in my OWN database and write logics?