Skip to content

Conversation

@suejung-sentry
Copy link
Contributor

@suejung-sentry suejung-sentry commented Jul 7, 2025

When I tried to update the billing address of Codecov org in prod (update the street name from "St." to "St"), in the UI it made it look like it went through successfully and the PATCH /update-billing-address 200'd.

But then going through the logs showed the error
"Request req_9ak7WzhcpRmZgQ: Your card was declined."
And the address is not reflected as changed within Stripe (and therefore not on our UI either).

Fix in this PR so this error can be passed back to gazebo frontend.

Screenshot 2025-07-07 at 2 24 38 PM

@ajay-sentry
Copy link
Contributor

@suejung-sentry How does this look on the UI when an error is raised?

@suejung-sentry
Copy link
Contributor Author

@suejung-sentry How does this look on the UI when an error is raised?

Here's the fix on gazebo side and a screenshot there - codecov/gazebo#3909

@codecov-notifications
Copy link

codecov-notifications bot commented Jul 10, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

@codecov
Copy link

codecov bot commented Jul 10, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.31%. Comparing base (4256b1f) to head (c8731a6).
Report is 2 commits behind head on main.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #298   +/-   ##
=======================================
  Coverage   94.31%   94.31%           
=======================================
  Files        1230     1230           
  Lines       45306    45307    +1     
  Branches     1449     1449           
=======================================
+ Hits        42732    42733    +1     
  Misses       2270     2270           
  Partials      304      304           
Flag Coverage Δ
apiunit 96.49% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

retrieve_customer_mock,
):
owner = OwnerFactory(stripe_customer_id="123", stripe_subscription_id="123")
assert self.stripe.update_billing_address(owner, "John Doe", "gabagool") is None
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this test was failing in CI dunno, was giving error about missing API key again. So changed it to take mocks for the calls to stripe api and still tests invalid address scenario

"recommendations": [
"ms-python.python",
"ms-python.mypy-type-checker",
"elagil.pre-commit-helper",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

decided to remove this as this fixed it for me but I'm second guessing whether it was just a me-problem and don't want to impose it on the world

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hahaha fair enough

@suejung-sentry suejung-sentry enabled auto-merge July 10, 2025 17:37
@suejung-sentry suejung-sentry added this pull request to the merge queue Jul 10, 2025
Merged via the queue into main with commit a1b63f3 Jul 10, 2025
39 checks passed
@suejung-sentry suejung-sentry deleted the sshin/billing branch July 10, 2025 17:50
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.

3 participants