-
Notifications
You must be signed in to change notification settings - Fork 86
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
Add StripeConnectAccount update endpoint for assigning an external account #583
Conversation
@begedin LGTM |
We still need to allow for updates to the StripeConnectAccount for all the other changes that can be made from the Ember app, like the personal/business information, identity document, etc. |
I would either rewrite the issue description in #572 then, or change it's title and open a new issue. The description makes it seem like only the I would actually lean against too specific update actions (this one, and the one proposed for attaching a verification document), but the issue description made it seem to me like this is what's required. |
Agree wholeheartedly on not having separate update actions, and think we should avoid that here. I'm definitely onboard with that. The only case where they are advisable, I think, is when they kick off complex separate actions that result in hitting Stripe's API at multiple endpoints. That's obviously avoidable here and instead we're listening for the external account solely in a webhook. Single update here, single update to Stripe. |
StripeConnectAccountService.add_external_account(account, "ba_test123") | ||
assert updated_account.external_account == "ba_test123" | ||
end | ||
end |
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.
Really I think this should just be update
now, no?
This needs more work. The process should be
|
@begedin stripity_stripe account update is merged now. |
4959684
to
013d7ab
Compare
@joshsmith I'm not seeing any code related to What did get merged was the rewrite of the conversion process. I'll start a PR of my own. |
@joshsmith What this does now is:
NOTES:
|
@begedin can you bring in the new stripity_stripe or rerun the build so it does so? |
e4c2027
to
b61703b
Compare
@joshsmith stripity_stripe is up to date now. Regardless of merge order, this is bound to have some conflicts with the other PRs. I recommending merging #588 first, because using that as a baseline will make resolving conflicts easier. |
6c931a2
to
a6250c1
Compare
a6250c1
to
914a4ae
Compare
What's in this PR?
Adds an update endpoint for StripeConnectAccount, which only allows assigning an external account. Everything else is reported as an unauthorized request.
References
Fixes #572