[Docs] Partial refunds for USD transactions#1132
Conversation
| - Refund eligible transactions (non-test, purchases with prices) | ||
| - Refund eligible transactions | ||
|
|
||
| #### Issuing Refunds |
There was a problem hiding this comment.
Citation: PR adds partial refund functionality. Key files: apps/dashboard/src/components/data-table/transaction-table.tsx (frontend refund dialog with USD amount input and validation), apps/backend/src/app/api/latest/internal/payments/transactions/refund/route.tsx (backend accepts optional amount_usd parameter with validation that amount > 0 and ≤ charged total).
View source
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
|
|
Important Review skippedBot user detected. To trigger a single review, invoke the You can disable this status message by setting the
Comment |
|
🔧 I noticed that some CI checks failed for this PR. I'm investigating the failures and will work on fixing them. |
1 similar comment
|
🔧 I noticed that some CI checks failed for this PR. I'm investigating the failures and will work on fixing them. |
Greptile OverviewGreptile SummaryThis PR updates the Payments guide to describe the new refund UX in the Payments dashboard: USD transactions can be refunded either fully or partially by specifying an amount (up to the original charge), while non-USD transactions are documented as only supporting full refunds. It also adds a short set of eligibility requirements for when a transaction is refundable (non-test-mode purchase with an associated price), and points readers to the Transactions section for refunds. Confidence Score: 5/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant Admin as Admin (Dashboard)
participant UI as Payments UI
participant Docs as Payments Docs (MDX)
Admin->>UI: Open transaction details
UI-->>Admin: Show Refund action (full/partial based on currency)
Admin->>Docs: Read "Issuing refunds" section
Docs-->>Admin: Explain eligibility + refund type rules
Admin->>UI: Attempt refund (amount optional for USD)
UI-->>Admin: Refund submitted / error shown
|
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
|
@greptile please review again. |
Open this suggestion in Promptless to view citations and reasoning process
Adds documentation for the new partial refund feature in the Payments dashboard. Documents that USD transactions support both full and partial refunds (specifying an amount up to the original charge), while non-USD transactions only support full refunds. Also clarifies refund eligibility requirements (non-test mode purchases with associated prices).
Trigger Events
stack-auth/stack-auth PR #1123: Partial refunds frontend
Promptless Research (1 GitHub PR)
Agent Response
This PR ties with #1123
Help us improve Promptless — If this suggestion missed the mark, please share quick feedback.
If you want Promptless to make further changes on this PR, feel free to leave a comment tagging Promptless (It won't show up in the user drop down but Promptless will get it!)