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
Found during the subscription-lifecycle live-acceptance session (roadmap #115 Session +1). Same class as the PayPal DEMO-stub (#160): server built, client stub.
The bug
The "Subscribe $9.99/month" button (src/app/payment-demo/page.tsx:191-201, type="recurring") routes through usePaymentButton.initiatePayment, which always calls the one-time createStripeCheckout(intent.id) path (src/hooks/usePaymentButton.ts:162). Clicking Subscribe creates a one-time $9.99 charge, never a subscription.
createSubscriptionCheckout(priceId, customerEmail) (src/lib/payments/stripe.ts:151-187) exists, is clover-fixed, and has zero callers.
create-stripe-subscription (deployed v8) has never been reachable from any UI.
Found during the subscription-lifecycle live-acceptance session (roadmap #115 Session +1). Same class as the PayPal DEMO-stub (#160): server built, client stub.
The bug
The "Subscribe $9.99/month" button (
src/app/payment-demo/page.tsx:191-201,type="recurring") routes throughusePaymentButton.initiatePayment, which always calls the one-timecreateStripeCheckout(intent.id)path (src/hooks/usePaymentButton.ts:162). Clicking Subscribe creates a one-time $9.99 charge, never a subscription.createSubscriptionCheckout(priceId, customerEmail)(src/lib/payments/stripe.ts:151-187) exists, is clover-fixed, and has zero callers.create-stripe-subscription(deployed v8) has never been reachable from any UI.type="recurring"button on the PayPal tab would silently create a one-time PayPal order viamountPayPalButtons(PayPal subscriptions are [Phase 0d] PayPal subscription: create-paypal-subscription (~2h) #104).Fix (this session's PR)
stripeConfig.subscriptionPriceIdfromNEXT_PUBLIC_STRIPE_PRICE_ID(the fn requires an operator-created Stripe Price ID).initiatePayment:stripe+recurring→createSubscriptionCheckout; clear error if the price ID is unconfigured.mountPayPalButtons: guardrecurringwith a clear error referencing [Phase 0d] PayPal subscription: create-paypal-subscription (~2h) #104.Part of the #100 epic; acceptance evidence will close #105.