-
Notifications
You must be signed in to change notification settings - Fork 28
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
feat: Handle webhooks for ACH microdeposits lifecycle #1116
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
68fc2b1
cleanup
suejung-sentry ec35658
Merge branch 'main' into sshin/microdeposits-2
ajay-sentry 310c1f7
fix account viewset tests
ajay-sentry 51b6ef4
test views test fixes
ajay-sentry 262e1c3
Merge remote-tracking branch 'origin/main' into sshin/microdeposits-2
suejung-sentry 4327e66
add tests
suejung-sentry ce5a4cf
fix tests
suejung-sentry 667cfba
cleanup
suejung-sentry 27bcf9b
cleanup
suejung-sentry 33054ff
Merge branch 'main' into sshin/microdeposits-2
ajay-sentry 0cf1a48
incorporate pr comments
suejung-sentry 66d8e3a
Merge remote-tracking branch 'origin/main' into sshin/microdeposits-2
suejung-sentry a69d0aa
fix test
suejung-sentry 3809147
lint
suejung-sentry File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
82 changes: 82 additions & 0 deletions
82
...s/cassetes/test_account_viewset/AccountViewSetTests/test_update_handles_stripe_error.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
interactions: | ||
- request: | ||
body: null | ||
headers: | ||
Accept: | ||
- '*/*' | ||
Accept-Encoding: | ||
- gzip, deflate | ||
Connection: | ||
- keep-alive | ||
Stripe-Version: | ||
- 2024-12-18.acacia | ||
User-Agent: | ||
- Stripe/v1 PythonBindings/11.4.1 | ||
X-Stripe-Client-User-Agent: | ||
- '{"bindings_version": "11.4.1", "lang": "python", "publisher": "stripe", "httplib": | ||
"requests", "lang_version": "3.12.8", "platform": "Linux-6.10.14-linuxkit-aarch64-with-glibc2.36", | ||
"uname": "Linux f69fe8d5c257 6.10.14-linuxkit #1 SMP Fri Nov 29 17:22:03 UTC | ||
2024 aarch64 "}' | ||
method: GET | ||
uri: https://api.stripe.com/v1/subscriptions/djfos?expand%5B0%5D=latest_invoice&expand%5B1%5D=customer&expand%5B2%5D=customer.invoice_settings.default_payment_method&expand%5B3%5D=customer.tax_ids | ||
response: | ||
body: | ||
string: "{\n \"error\": {\n \"code\": \"resource_missing\",\n \"doc_url\": | ||
\"https://stripe.com/docs/error-codes/resource-missing\",\n \"message\": | ||
\"No such subscription: 'djfos'\",\n \"param\": \"id\",\n \"request_log_url\": | ||
\"https://dashboard.stripe.com/test/logs/req_fCLmExiHliLLAy?t=1738274612\",\n | ||
\ \"type\": \"invalid_request_error\"\n }\n}\n" | ||
headers: | ||
Access-Control-Allow-Credentials: | ||
- 'true' | ||
Access-Control-Allow-Methods: | ||
- GET, HEAD, PUT, PATCH, POST, DELETE | ||
Access-Control-Allow-Origin: | ||
- '*' | ||
Access-Control-Expose-Headers: | ||
- Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, | ||
X-Stripe-Privileged-Session-Required | ||
Access-Control-Max-Age: | ||
- '300' | ||
Cache-Control: | ||
- no-cache, no-store | ||
Connection: | ||
- keep-alive | ||
Content-Length: | ||
- '324' | ||
Content-Security-Policy: | ||
- base-uri 'none'; default-src 'none'; form-action 'none'; frame-ancestors 'none'; | ||
img-src 'self'; script-src 'self' 'report-sample'; style-src 'self'; upgrade-insecure-requests; | ||
report-uri https://q.stripe.com/csp-violation?q=JU_aZLssk7a3_VZEeiDM3UWQN0mgWJiEG8zz5aFpDfoiI4Itt-XeW-vHYyCYd8ZJIklaArUO0YdslYml | ||
Content-Type: | ||
- application/json | ||
Cross-Origin-Opener-Policy-Report-Only: | ||
- same-origin; report-to="coop" | ||
Date: | ||
- Thu, 30 Jan 2025 22:03:32 GMT | ||
Report-To: | ||
- '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' | ||
Reporting-Endpoints: | ||
- coop="https://q.stripe.com/coop-report" | ||
Request-Id: | ||
- req_fCLmExiHliLLAy | ||
Server: | ||
- nginx | ||
Strict-Transport-Security: | ||
- max-age=63072000; includeSubDomains; preload | ||
Stripe-Version: | ||
- 2024-12-18.acacia | ||
Vary: | ||
- Origin | ||
X-Content-Type-Options: | ||
- nosniff | ||
X-Stripe-Priority-Routing-Enabled: | ||
- 'true' | ||
X-Stripe-Routing-Context-Priority-Tier: | ||
- api-testmode | ||
X-Wc: | ||
- AB | ||
status: | ||
code: 404 | ||
message: Not Found | ||
version: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
TODO - these need to be turned on in Stripe dashboard