How can I create a free plan using the shopify billing api for my shopify app? - Stack Overflow

I am trying to give certain stores the opportunity to use my app for free as a way to get feedback from

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.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744773857a4592925.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信