You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found that the discount was not limited to certain products, as the variantIds configuration option would suggest.
When adding isLimitedToProducts: true it works fine.
It should probably be also listed in the example, since most users would expect the coupon to be limited, when variantIds are provided.
Current
const{ statusCode, error, data }=awaitcreateDiscount({name: 'TestDiscount',amount: 50,amountType: 'percent',storeId: 123456,variantIds: [345678,456789],});
Hi! I just created a discount using the wiki page: https://github.com/lmsqueezy/lemonsqueezy.js/wiki/Discounts#usage
I found that the discount was not limited to certain products, as the
variantIds
configuration option would suggest.When adding
isLimitedToProducts: true
it works fine.It should probably be also listed in the example, since most users would expect the coupon to be limited, when
variantIds
are provided.Current
Proposed
The text was updated successfully, but these errors were encountered: