-
-
Notifications
You must be signed in to change notification settings - Fork 3
Accept only confirmed Square refund outcomes #1911
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
6b1a52f
ec78336
2588b35
62689e1
2858c6e
1693aa5
464576d
ebec21d
073f91b
b933296
6c64434
0a97591
ed2bfa7
90b9bba
c3bfaa1
e017a9e
8999951
037b812
99d3860
23cae69
d549c0b
2532c11
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -872,8 +872,8 @@ src/shared/runtime.ts:67:45 ?? → || # nodeCompatVersion is string|undefined | |
| src/shared/runtime.ts:68:18 ?? → || # os is string|undefined and falls back to "", so both operators agree | ||
| src/shared/runtime.ts:70:43 ?? → || # typescriptVersion is string|undefined and falls back to "", so both operators agree | ||
| src/shared/runtime.ts:71:38 ?? → || # userAgent is string|undefined and falls back to "", so both operators agree | ||
| src/shared/square.ts:644:18 ?? → || # the callback returns true while missing clients and caught errors return null; both operators produce the same boolean | ||
| src/shared/square.ts:714:37 ?? → || # locations is an array or undefined; arrays are truthy and undefined takes [] under both operators | ||
| src/shared/square.ts:312:21 ?: → consequent only # the buyer_phone_number ternary spreads {} when the phone is absent; the consequent-only mutant always spreads { buyer_phone_number: undefined }, but JSON.stringify omits undefined values, so the serialized request body is identical in both cases | ||
| src/shared/square.ts:783:37 ?? → || # locations is an array or undefined; arrays are truthy and undefined takes [] under both operators | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Fresh evidence after the earlier thread: the final amount-verification block shifted AGENTS.md reference: AGENTS.md:L946-L949 Useful? React with 👍 / 👎. |
||
| src/ui/client/dom.ts:13:19 = → += # createElement returns a new button with className "", so both assignments produce the supplied class string | ||
|
|
||
| # Paid-payment processing: private defaults are always supplied by their only | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When the Square sandbox returns the documented
PENDINGoutcome, this assertion fails even though the refund request was accepted:squareApi.refundPaymentnow returnsfalsefor that status, and the inspected admin path insrc/features/admin/refunds/provider.ts:39-56performs only one immediateisPaymentRefundedcheck before rendering “Refund failed.” The new SquareafterPaidBookinghook therefore makes the nightly journey depend on the refund becomingCOMPLETEDsynchronously; poll through the refresh flow until the accepted refund settles before requiring the success flash.Useful? React with 👍 / 👎.