No content to show
User Activity
11-24-2023
We had the same problem, the `billing.require` function always expects a `onFailure ` fallback. I found a workaround, that's why I pass a new response with null as a parameter. This won't work outside of a try catch block.Here you can see the full lo...
11-24-2023
For example this is a workaround to get the information of the billing for the current user. The onFailure callback does nothing.```let billingInfo;try {billingInfo = await billing.require({plans: [BASIC_TIER, PREMIUM_TIER, ULTIMATE_TIER],isTest: fal...
11-24-2023
The "free" plan is just no plan in our app. So if the user has no subscription he is on a "free plan".
11-24-2023
My bad as you said, the amount for a billing plan has to more than zero. Here is an example for one of our Apps.shopify.server.ts```const shopify = shopifyApp({apiKey: process.env.SHOPIFY_API_KEY,apiSecretKey: process.env.SHOPIFY_API_SECRET || '',api...
11-11-2023
Something like this should be working.```export const action: ActionFunction = async ({ request }) => {const { billing } = await authenticate.admin(request);await billing.require({plans: [BASIC_TIER],isTest: true,onFailure: async () => billing.reques...