Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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
Original file line number Diff line number Diff line change
Expand Up @@ -160,11 +160,13 @@ const CustomerChangePlanModal = ({

switch (prorationBehavior) {
case 'invoice':
return "I'll be charged immediately with a proration for the current month."
return "I'll be charged immediately, with a proration for the current period."
case 'prorate':
return 'Your next invoice will include the new plan plus the proration for the current month.'
return 'Your next invoice will include the new plan plus the proration for the current period.'
case 'next_period':
return 'The new plan will be applied on your next billing cycle.'
case 'reset':
return "I'll be charged the full amount for the new plan immediately, and my billing period restarts today."
}
}, [
selectedProduct,
Expand All @@ -177,7 +179,8 @@ const CustomerChangePlanModal = ({
const willIssueInvoice =
trialOutcome?.kind === 'ends' ||
willTriggerImmediateCycle ||
prorationBehavior === 'invoice'
(!isTrialing &&
(prorationBehavior === 'invoice' || prorationBehavior === 'reset'))
const [approveImmediateInvoice, setApproveImmediateInvoice] = useState(false)

const canChangePlan = useMemo(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,13 @@ export const CustomerSeatQuantityManager = ({
if (!prorationBehavior) return null
switch (prorationBehavior) {
case 'invoice':
return "I'll be charged immediately with a proration for the current month."
return "You'll be charged immediately, with a proration for the current period."
case 'prorate':
return 'Your next invoice will include the updated seats plus the proration for the current month.'
return 'Your next invoice will include the updated seats plus the proration for the current period.'
case 'next_period':
return 'The seat update will be applied on your next billing cycle.'
case 'reset':
return "You'll be charged the full new amount immediately, and your billing period restarts today."
}
}, [prorationBehavior])

Expand Down
Loading