App reviews, troubleshooting, and recommendations
Currently, my app uses the following code to check if a user is subscribed:
```ts
export const loader = async ({ params, request }: LoaderFunctionArgs) => {
const { admin, session, billing } = await authenticate.admin(request);
const { hasActivePayment, oneTimePurchases, appSubscriptions } =
await billing.check({
isTest: process.env.NODE_ENV !== "production",
});
```
If the user is subscribed, `hasActivePayment` will be `true`.
My monthly subscription has a 7-day trial period, and if the user cancels after subscribing but is still within the 7 days, they should still have subscription access.
However, in this case, `hasActivePayment` is already `false`.
How can I determine if a shop who has canceled their subscription is still within the trial period?
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025