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
it would be really helpful to be able to use discountCode instead of discountId while creating a new checkout
i'd say it's a common thing that you give user a URL to a pricing page with pre-populated discount code as a URL param, it's helpful either for support cases or some email campaign
none of this stuff should require to adjust app code, just to embed the discount IDs or doing some other shenanigans like keeping the copy of all discounts in own database
right now I'd have to ask for the discounts list every time someone wants to create a checkout, which isn't particularly fast, and in cases like mine, requires doing multiple requests just to get all discounts, because I have more than 100 of them
alternatively something like await polar.discounts.get({ discountCode }) will do too, but still more annoying to use than just dropping code while creating the checkout
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
it would be really helpful to be able to use
discountCode
instead ofdiscountId
while creating a new checkouti'd say it's a common thing that you give user a URL to a pricing page with pre-populated discount code as a URL param, it's helpful either for support cases or some email campaign
none of this stuff should require to adjust app code, just to embed the discount IDs or doing some other shenanigans like keeping the copy of all discounts in own database
right now I'd have to ask for the discounts list every time someone wants to create a checkout, which isn't particularly fast, and in cases like mine, requires doing multiple requests just to get all discounts, because I have more than 100 of them
alternatively something like
await polar.discounts.get({ discountCode })
will do too, but still more annoying to use than just dropping code while creating the checkoutBeta Was this translation helpful? Give feedback.
All reactions