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

Stripe create token for account #836

Merged
merged 9 commits into from
May 18, 2018
Merged

Conversation

Gnito
Copy link
Contributor

@Gnito Gnito commented May 17, 2018

N.B. check this commit-by-commit

@Gnito Gnito requested a review from lyyder May 17, 2018 11:51
@Gnito Gnito force-pushed the stripe-createToken-for-account branch from 81490c5 to c787d02 Compare May 17, 2018 12:00
@Gnito
Copy link
Contributor Author

Gnito commented May 17, 2018

One more thing coming: I'll move stripe.sdk call from PayoutPreferences.duck to user.duck.

@Gnito Gnito force-pushed the stripe-createToken-for-account branch 2 times, most recently from 0fad40d to c3b83a4 Compare May 18, 2018 08:36
@Gnito Gnito force-pushed the stripe-createToken-for-account branch from c4c3faa to 29b786e Compare May 18, 2018 09:10
@@ -172,6 +173,12 @@ const PayoutDetailsFormComponent = props => (
);
}

const stripeConnecteAccountTermsLink = (
Copy link
Contributor

Choose a reason for hiding this comment

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

s/Connecte/Connect

Copy link
Contributor

Choose a reason for hiding this comment

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

or is it s/Connecte/Connected?

@@ -445,6 +445,8 @@
"PayoutDetailsForm.streetAddressLabel": "Street address",
"PayoutDetailsForm.streetAddressPlaceholder": "Enter your street address…",
"PayoutDetailsForm.streetAddressRequired": "This field is required",
"PayoutDetailsForm.stripeConnecteAccountTermsLink": "Stripe Connected Account Agreement",
Copy link
Contributor

Choose a reason for hiding this comment

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

Also here Connecte

@@ -255,7 +255,7 @@ const PayoutDetailsFormComponent = props => (
label={streetAddressLabel}
placeholder={streetAddressPlaceholder}
validate={streetAddressRequired}
onUnmount={() => change('streetAddress', undefined)}
onUnmount={() => form.change('streetAddress', undefined)}
Copy link
Contributor

Choose a reason for hiding this comment

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

BTW, what's this for?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Don't use deprecated 'change' but 'form.change' 1a0e9ae

Dropdown affects visible fields: this clears those fields.

Copy link
Contributor

@lyyder lyyder left a comment

Choose a reason for hiding this comment

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

Looks great! Added a few comments, mostly about spelling etc.

CHANGELOG.md Outdated
@@ -12,10 +12,12 @@ way to update this template, but currently, we follow a pattern:

----

## Upcoming version
## v0.3.0
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we keep the Upcoming version here always until a release is made and with the release set the new version number? Then the changes would always be listed under the same captioon.

Copy link
Contributor

Choose a reason for hiding this comment

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

The downside obviously is that we might forget if we've made some larger updates and accidentally do a minor version update when a major one would be in place. But I still find it more clear if the caption is always kept until a release comes.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was planning to make release immediately after this PR. Will do it in separate PR though - so, I'll pump this there.

CHANGELOG.md Outdated

* Remove custom touched handling from `FieldCheckboxGroup` as it has has become obsolete now that
Final Form is replacing Redux Form. [#837](https://github.com/sharetribe/flex-template-web/pull/837)
Final Form is replacing Redux Form. [#837](https://github.com/sharetribe/flex-template-web/pull/837)
* Create Stripe account directly instead of passing payoutdetails to Flex API (deprecated way).
Copy link
Contributor

Choose a reason for hiding this comment

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

s/payoutdetails/payout details

@Gnito Gnito force-pushed the stripe-createToken-for-account branch from d07fbf5 to db2c8f8 Compare May 18, 2018 11:34
@Gnito Gnito merged commit a52ea81 into master May 18, 2018
@Gnito Gnito deleted the stripe-createToken-for-account branch May 18, 2018 11:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants