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 badges1 Answer
Reset to default 0The 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
版权声明:本文标题:How can I create a free plan using the shopify billing api for my shopify app? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744773856a2624505.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论