Skip to content

payment directly from webapp instead of having to access email#98

Open
chanyoung-hur wants to merge 5 commits intomainfrom
payment-button
Open

payment directly from webapp instead of having to access email#98
chanyoung-hur wants to merge 5 commits intomainfrom
payment-button

Conversation

@chanyoung-hur
Copy link
Copy Markdown
Collaborator

payment directly from webapp instead of having to access email

@chanyoung-hur chanyoung-hur requested a review from Copilot April 6, 2026 00:55
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 6, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
biotech-maintenance-platform Error Error Apr 23, 2026 11:32pm

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds support for opening Bill.com payment links directly from the web app (instead of relying on emailed links), by storing a payment URL on invoices and exposing it in the lab manager UI.

Changes:

  • Add payment_url to invoices and populate it during Bill.com AR invoice creation.
  • Show a “Open Bill.com Payment Page” CTA in the manager payment requests UI.
  • Add navigation entry points to the payment requests page (manager dashboard + navbar) and adjust invoice email CTA to point to the portal.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 10 comments.

Show a summary per file
File Description
supabase_schema.sql Adds payment_url column on public.invoices.
my-app/src/app/manager/payment_requests/page.tsx Resolves and displays Bill.com payment link in the payment requests detail panel.
my-app/src/app/manager/ManagerClient.tsx Adds a “Payments” section linking to payment requests.
my-app/src/app/lib/email.ts Updates invoice email CTA to deep-link to the in-app payment portal.
my-app/src/app/lib/billPaymentLink.ts Introduces shared helper for extracting/deriving a Bill.com payment URL.
my-app/src/app/components/Navbar.tsx Adds “Payments” entry to the lab user dropdown.
my-app/src/app/api/invoices/create-initial-fee/route.ts Attempts to persist payment_url when creating initial-fee Bill.com invoices.
my-app/src/app/api/bill/create-invoice/route.ts Persists/backfills payment_url for service invoices and handles already-created AR invoices.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread my-app/src/app/api/invoices/create-initial-fee/route.ts
Comment thread my-app/src/app/api/invoices/create-initial-fee/route.ts Outdated
Comment thread my-app/src/app/api/bill/create-invoice/route.ts Outdated
Comment thread my-app/src/app/manager/payment_requests/page.tsx
Comment thread my-app/src/app/manager/payment_requests/page.tsx Outdated
Comment thread my-app/src/app/lib/billPaymentLink.ts
Comment thread my-app/src/app/lib/billPaymentLink.ts Outdated
Comment thread my-app/src/app/lib/email.ts Outdated
Comment thread my-app/src/app/api/invoices/create-initial-fee/route.ts
Comment thread my-app/src/app/api/bill/create-invoice/route.ts Outdated
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 8 out of 8 changed files in this pull request and generated 9 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread my-app/src/app/lib/billPaymentLink.ts
Comment thread my-app/src/app/lib/billPaymentLink.ts Outdated
Comment thread my-app/src/app/lib/billPaymentLink.ts Outdated
Comment thread my-app/src/app/manager/payment_requests/page.tsx
Comment thread my-app/src/app/api/invoices/create-initial-fee/route.ts Outdated
Comment thread my-app/src/app/api/invoices/create-initial-fee/route.ts
Comment thread my-app/src/app/api/invoices/create-initial-fee/route.ts
Comment thread my-app/src/app/api/bill/create-invoice/route.ts Outdated
Comment thread my-app/src/app/api/invoices/create-initial-fee/route.ts
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