Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions src/lib/checkout-urls.js
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,27 @@ export const TEAM_PRODUCT_CONFIG = {
label: "FinePrint Corporate Playbook Pro + FinePrintAI-Core ($79/mo)",
redirectUrl: "https://ritualdev.in/pricing/success/?product=fineprint_pro_79",
},
poly_cloud_pro_29: {
id: "poly_cloud_pro_29",
productId: DODO_SERVICE_FLEX,
flexAmountUsd: "29",
label: "Poly Cloud Remote Cache Pro — 50 GB ($29/mo)",
redirectUrl: "https://ritualdev.in/pricing/success/?product=poly_cloud_pro_29",
},
poly_cloud_enterprise_199: {
id: "poly_cloud_enterprise_199",
productId: DODO_SERVICE_FLEX,
flexAmountUsd: "199",
label: "Poly Cloud Remote Cache Enterprise — 500 GB + SLSA ($199/mo)",
redirectUrl: "https://ritualdev.in/pricing/success/?product=poly_cloud_enterprise_199",
},
skillprism_recruiter_29: {
id: "skillprism_recruiter_29",
productId: DODO_SERVICE_FLEX,
flexAmountUsd: "29",
label: "SkillPrism Recruiter Verified Proofs ($29/mo)",
redirectUrl: "https://ritualdev.in/pricing/success/?product=skillprism_recruiter_29",
},
mcp_starter_49: {
id: "mcp_starter_49",
productId: DODO_MCP_STARTER_49,
Expand Down
13 changes: 13 additions & 0 deletions tests/checkout-functions.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,19 @@ describe("Storefront Checkout URL Builders & Cloudflare Pages Functions", () =>
assert.ok(fp79.includes("paymentAmount=79"));
assert.ok(fp79.includes("FinePrintAI-Core"));

// Verify Stage 6C Poly Cloud & SkillPrism Recruiter SKUs
const pc29 = buildTeamProductCheckoutUrl({ tier: "poly_cloud_pro_29" });
assert.ok(pc29.includes("paymentAmount=29"));
assert.ok(pc29.includes("metadata_tier=poly_cloud_pro_29"));

const pc199 = buildTeamProductCheckoutUrl({ tier: "poly_cloud_enterprise_199" });
assert.ok(pc199.includes("paymentAmount=199"));
assert.ok(pc199.includes("metadata_tier=poly_cloud_enterprise_199"));

const sp29 = buildTeamProductCheckoutUrl({ tier: "skillprism_recruiter_29" });
assert.ok(sp29.includes("paymentAmount=29"));
assert.ok(sp29.includes("metadata_tier=skillprism_recruiter_29"));

const coreBody = JSON.stringify({
type: "payment.succeeded",
data: {
Expand Down