Uh oh!
There was an error while loading. Please reload this page.
fix(clerk-js): Avoid using needsPaymentMethod in CheckoutComplete step - #7140
Conversation
🦋 Changeset detectedLatest commit: 2eb46fd The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
The latest updates on your projects. Learn more about Vercel for GitHub.
|
WalkthroughA patch for Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant User
participant CheckoutComplete
participant Renderer
User->>CheckoutComplete: opens success screen (props: totals, freeTrialEndsAt, paymentMethod)
Note right of CheckoutComplete: Decision based on<br/>totals.totalDueNow.amount > 0<br/>or freeTrialEndsAt !== null
alt totalDueNow > 0 or freeTrialEndsAt set
CheckoutComplete->>Renderer: render "payment/subscription success" title & description
CheckoutComplete->>Renderer: render payment method details (if applicable)
else totalDueNow == 0 and no trial end
CheckoutComplete->>Renderer: render "no-payment success" title & description
end
Renderer->>User: display appropriate success UI
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
Poem
Pre-merge checks and finishing touches✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Disabled knowledge base sources:
📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
Comment |
@clerk/agent-toolkit@clerk/astro@clerk/backend@clerk/chrome-extension@clerk/clerk-js@clerk/dev-cli@clerk/elements@clerk/clerk-expo@clerk/expo-passkeys@clerk/express@clerk/fastify@clerk/localizations@clerk/nextjs@clerk/nuxt@clerk/clerk-react@clerk/react-router@clerk/remix@clerk/shared@clerk/tanstack-react-start@clerk/testing@clerk/themes@clerk/types@clerk/upgrade@clerk/vuecommit: |
Uh oh!
There was an error while loading. Please reload this page.
Description
Checklist
pnpm testruns as expected.pnpm buildruns as expected.Type of change
Summary by CodeRabbit
Bug Fixes
Chores