Skip to content

Conversation

@NatElkins
Copy link
Contributor

@NatElkins NatElkins commented Jan 17, 2026

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

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.
Remove FREE as a valid amountType for product prices. Free products
are not currently supported as they would require skipping the Lightning
payment flow entirely.

CUSTOM prices now require amount > 0 to prevent zero-amount checkouts.
FREE and METERED price types are no longer supported.
Update tests to expect rejection of these types.
@NatElkins NatElkins merged commit 967248c into main Jan 20, 2026
2 checks passed
@NatElkins NatElkins deleted the mdk-403 branch January 20, 2026 02:52
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