/* VYNDR 2.0 — checkout helper (§12). CommonJS so the paywall imports it
   AND Jest verifies the tier→URL mapping. */

const PLAN_PRICES = { analyst: '$14.99', desk: '$44.99' };

/** Build the Stripe checkout URL for a plan tier. */
function checkoutUrl(plan) {
  const tier = plan === 'desk' ? 'desk' : 'analyst';
  return `/api/checkout?tier=${tier}`;
}

module.exports = { checkoutUrl, PLAN_PRICES };
