-
Notifications
You must be signed in to change notification settings - Fork 108
refactor: centralize V2 delete payment method endpoint #1244
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
base: main
Are you sure you want to change the base?
refactor: centralize V2 delete payment method endpoint #1244
Conversation
- Moved Delete Payment Method V2 URL from PaymentHelpersV2 to APIUtils.res - Organized endpoints under clear V1 and V2 sections in APIUtils - Replaced hardcoded references with centralized constants - Improved maintainability and consistency across API endpoints - No functional changes, all existing tests pass
|
Hey @Krriishhhhhh you have added the usage of |
|
@sakksham7 i made the changes , also while running
I am unsure whether to remove that unwanted code or not . |
AbhishekChorotiya
left a comment
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.
Looking good to me!
|
Hey @Krriishhhhhh , |
|
Hey @AbhishekChorotiya , thanks for the review , just wanted to ask what is the purpose of the form? |

Type of Change
Description
Centralizes the Delete Payment Method V2 endpoint by moving it from PaymentHelpersV2.res into APIUtils.res, improving maintainability and consistency with V1 endpoints.
Fixes juspay/hyperswitch#9317
📋 Changes Made
APIUtils.resDeletePaymentMethodV2variant toapiCallV2typepmSessionId: option<string>toapiParamstypegenerateApiUrlfunction to handle V2 update payment method pathPaymentHelpersV2.resHow did you test it?
Only build test
Checklist
npm run re:build