AutumnA
Autumn6d ago
39 replies
TepidToast

No prepaid price found for feature brands

hey!

implementing entities, and I'm getting this error when trying to run attach with the featuredId of the entity and a quantity of 1 in the options when the entity is prepaid. How would I fix this?
config:
export const brands = feature({
id: "brands",
name: "Brands",
type: "continuous_use",
});

pricedFeatureItem({
feature_id: brands.id,
included_usage: 1,
price: 500,
interval: "month",
usage_model: "prepaid",
}),
attach:
await attach({
productId: "pro",
options: [
{
featureId: "brands",
quantity: 1, // Purchase 1 additional brand slot
},
],
});

code/config for ref^
Was this page helpful?