Skip to content

fix(payment): trim callback base URL trailing slashes - #7417

Open
ouchihao wants to merge 1 commit into
Wei-Shaw:mainfrom
ouchihao:codex/bug-payment-callback-slash
Open

ouchihao wants to merge 1 commit into
Wei-Shaw:mainfrom
ouchihao:codex/bug-payment-callback-slash

Conversation

@ouchihao

Copy link
Copy Markdown
Contributor

Entering a callback base URL such as https://example.com/ currently saves https://example.com//api/v1/payment/webhook/easypay. Strip trailing slashes before appending the existing notification and return paths, preserving subpaths and the default-origin fallback.

Validation: four regression cases cover trailing slashes, whitespace with subpaths, already-normalized URLs, and empty bases. The two trailing-slash cases fail on the unchanged baseline. Focused and upstream critical Vitest suites, vue-tsc --noEmit, full ESLint, and git diff --check pass. No live payment transaction was performed.

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.

1 participant