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.
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744773857a4592925.html
评论列表(0条)