Skip to content

Conversation

@NatElkins
Copy link
Contributor

Summary

  • Add productId, productPriceId, customAmount, and product fields to BaseCheckoutSchema
  • These fields support the Polar-style "selector" architecture where users choose one product from available options
  • Include built dist/ folder temporarily so the package can be installed from GitHub during development

Changes

  • src/schemas/checkout.ts: Add product selection fields to BaseCheckoutSchema
  • src/contracts/checkout.ts: Add .max(1) validation to products array in ConfirmCheckoutInputSchema
  • Tests updated for new schema fields

Related

  • Part of MDK-403: Products checkout flow
  • Used by lightning-node mdk-403 branch

Add productId, productPriceId, customAmount, and product fields
to BaseCheckoutSchema for the Polar-style selector architecture.
Update tests and contract input validation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants