admin管理员组

文章数量:1392007

I am trying to give certain stores the opportunity to use my app for free as a way to get feedback from trusted people. When create a plan and set the amount to 0 it throws an error when I try to send them to the subscription page. Is there a workaround to this or can I only create paid plans? here is my code for my plans:

billing: {
    basic: {
      amount: 29,
      currencyCode: "USD",
      //@ts-ignore
      interval: BillingInterval.Every30Days,
      trialDays: 14,
    },
    plus: {
      amount: 49,
      currencyCode: "USD",
      //@ts-ignore
      interval: BillingInterval.Every30Days,
      trialDays: 14,
    },
    free: {
      amount: 0,
      currencyCode: "USD",
      //@ts-ignore
      interval: BillingInterval.Every30Days
    }

edit: my other plans work fine, its just the free one. the error says validation failed: price

I am trying to give certain stores the opportunity to use my app for free as a way to get feedback from trusted people. When create a plan and set the amount to 0 it throws an error when I try to send them to the subscription page. Is there a workaround to this or can I only create paid plans? here is my code for my plans:

billing: {
    basic: {
      amount: 29,
      currencyCode: "USD",
      //@ts-ignore
      interval: BillingInterval.Every30Days,
      trialDays: 14,
    },
    plus: {
      amount: 49,
      currencyCode: "USD",
      //@ts-ignore
      interval: BillingInterval.Every30Days,
      trialDays: 14,
    },
    free: {
      amount: 0,
      currencyCode: "USD",
      //@ts-ignore
      interval: BillingInterval.Every30Days
    }

edit: my other plans work fine, its just the free one. the error says validation failed: price

Share Improve this question asked Mar 11 at 19:56 noahaclanoahacla 591 silver badge3 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

The Shopify Billing API only supports paid plans (non-zero amounts). For a free plan, manage access on your side (e.g., using your database or store domain checks) instead of using the API.

本文标签: How can I create a free plan using the shopify billing api for my shopify appStack Overflow