Skip to content
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

[BUG] CustomerPaymentMethodsListResponse returns 404 when there is no customer tied to a payment #3767

Open
2 tasks done
vsrivatsa-edinburgh opened this issue Feb 22, 2024 · 0 comments · Fixed by #3773 or #3796
Open
2 tasks done
Assignees
Labels
C-bug Category: Bug S-awaiting-triage Status: New issues that have not been assessed yet

Comments

@vsrivatsa-edinburgh
Copy link
Member

Bug Description

CustomerPaymentMethodsListResponse returns 404 when there is no customer tied to a payment

Expected Behavior

Return a 200 response somehow indicating that a customer is not associated with the payment

Actual Behavior

A 404 response with "Customer does not exist in our records" is being returned, although the customer_id is null

Steps To Reproduce

Provide an unambiguous set of steps to reproduce this bug. Include code or configuration to reproduce, if relevant.

  1. Create a payment intent with customer_id as null
  2. GET /customers/payment_methods?client_secret={client_secret}
  3. Observe the response and status code

Context For The Bug

No response

Environment

Are you using hyperswitch hosted version? Yes/No
If yes, please provide the value of the x-request-id response header to help us debug your issue.

If not (or if building/running locally), please provide the following details:

  1. Operating System or Linux distribution:
  2. Rust version (output of rustc --version): ``
  3. App version (output of cargo r --features vergen -- --version): ``

Have you spent some time checking if this bug has been raised before?

  • I checked and didn't find a similar issue

Have you read the Contributing Guidelines?

Are you willing to submit a PR?

Yes, I am willing to submit a PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: Bug S-awaiting-triage Status: New issues that have not been assessed yet
Projects
None yet
1 participant