diff --git a/api/src/routes/checkout.ts b/api/src/routes/checkout.ts index b1bd421..7afae6d 100644 --- a/api/src/routes/checkout.ts +++ b/api/src/routes/checkout.ts @@ -2271,21 +2271,14 @@ export async function sendComplianceIntakeEmail( // us (fewer steps, lets us bulk-file). We never ask for their password. const npiConfirmUrl = `${SITE_DOMAIN}/order/success?action=ia_surrogacy&order_id=${orderId}`; - const npiSection = hasNpiAccess ? ` -
We're handling your filing
-- You're all set — we prepare and submit your filing and track it to - confirmation. The only thing we may need from you is a quick signature on - a secure link we'll send. Nothing to set up. -
-Optional: speed it up
-- If you can electronically grant us CMS I&A Surrogate access, - we can file faster — it cuts steps on our end and lets us process your - filing right away. You never share your password; you simply authorize us - as a Surrogate for your NPI. -
+ // Did the provider opt in to granting CMS I&A Surrogate access on the intake + // form? If yes, surface the how-to prominently (it confirms the step they + // committed to). If no / undecided, we still make it available, but collapsed + // behind a "Show me how" expander and placed lower so it doesn't nag someone + // who already chose to let us handle everything. + const grantedSurrogate = String(intake.surrogate_access || "").toLowerCase() === "yes"; + + const surrogateSteps = `We're handling your filing
++ You're all set — we prepare and submit your filing and track it to + confirmation. The only thing we may need from you is a quick signature on + a secure link we'll send.
+You chose to grant Surrogate access — here's how (takes ~2 minutes)
++ This lets us file faster. You never share your password; you simply + authorize us as a Surrogate for your NPI. +
+ ${surrogateSteps}- Can't do this step? No problem — we'll handle your filing without it. - There's nothing else you need to do. + Changed your mind? No problem — we'll handle your filing without it.
+We're handling your filing
++ You're all set — we prepare and submit your filing and track it to + confirmation. The only thing we may need from you is a quick signature on + a secure link we'll send. Nothing else to do. +
+Optional: want it filed even faster?
++ If you can electronically grant us CMS I&A Surrogate access, + we can process your filing right away. It's never required — we'll file + it for you either way, at the same price. You never share your password. +
+1. Our team is already working on your filing.