ok it works if i use fixed price :
ok it works if i use fixed price :
export const creditsTopUp = product({
id: "credits-top-up",
name: "Credits Top-up",
is_add_on: true, // Mark as add-on product
items: [
pricedFeatureItem({
feature_id: ludizCredits.id,
billing_units: 1,
usage_model: "prepaid", // Prepaid credits
// tiers: [
// { to: 100, amount: 1.0 },
// { to: "inf", amount: 0.8 },
// ],
price: 1.0, // $1 per credit, no tiers
// No interval = credits don't expire
}),
],
});
but using tiers it always credits only one credit - maybe a bug ?
export const creditsTopUp = product({
id: "credits-top-up",
name: "Credits Top-up",
is_add_on: true, // Mark as add-on product
items: [
pricedFeatureItem({
feature_id: ludizCredits.id,
billing_units: 1,
usage_model: "prepaid", // Prepaid credits
// tiers: [
// { to: 100, amount: 1.0 },
// { to: "inf", amount: 0.8 },
// ],
price: 1.0, // $1 per credit, no tiers
// No interval = credits don't expire
}),
],
});
but using tiers it always credits only one credit - maybe a bug ?
