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?
Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024The Hydrogen Visual Editor is now available to merchants in Shopify Editions | Summer '...
By JasonH Sep 2, 2024Note: Customizing your CSS requires some familiarity with CSS and HTML. Before you cust...
By JasonH Aug 12, 2024