Commit graph

130 commits

Author SHA1 Message Date
Jenni Nurmi
6f4e93bbdc Fix bug in passing the id number to Stripe 2019-07-04 15:05:46 +03:00
Vesa Luusua
563e6faa49 Add new calls to stripe.duck.js (PaymentIntents)
and remove unused createStripePaymentToken
2019-06-27 17:37:38 +03:00
Jenni Nurmi
d8c5461a58 Clear cardtoken before redirecting 2019-06-11 13:18:32 +03:00
Jenni Nurmi
af782db541 Fix small bug in stripe.duck.js 2019-05-16 11:04:28 +03:00
Jenni Nurmi
fcc932441e Update proptypes 2019-05-16 11:04:28 +03:00
Jenni Nurmi
291708ff8c Use values from store 2019-05-09 16:02:45 +03:00
Jenni Nurmi
952f713a5d Move creating payment token to strip.duck.js 2019-05-09 16:02:40 +03:00
Vesa Luusua
076055f9c2 Add stripe.duck.js to handle Stripe account and person endpoints 2019-03-27 13:23:21 +02:00
Jenni Nurmi
a659c40486 Sent correct params in user.duck.js depending on Stripe API version 2019-02-28 13:57:17 +02:00
Jenni Nurmi
1c14794ed8 Config for Stripe API version 2019-02-28 09:34:47 +02:00
Vesa Luusua
c33afc9b0c Expose which transitions lead to request 2019-01-30 14:20:59 +02:00
Vesa Luusua
a7b7c58d80 Extract transaction related code to its own util file
from types.js
2019-01-30 14:20:59 +02:00
Jenni Nurmi
9c31f3e0ea Add additional owners to company account if required 2019-01-07 14:04:01 +02:00
Jenni Nurmi
6319c77731 Add personal address to company account if required 2019-01-07 14:04:01 +02:00
Jenni Nurmi
a3b43cec27 Update user.duck.js to support also business accounts 2019-01-07 14:04:01 +02:00
Jenni Nurmi
0cc6cf9663 Add ID number field with validators to US and HK 2018-12-10 14:50:21 +02:00
Jenni Nurmi
45e00d2241 Add Stripe support for Canada 2018-12-10 14:50:21 +02:00
Jenni Nurmi
fe1082e5e5 Add field for personal id number to PayoutDetailsForm 2018-12-10 14:50:21 +02:00
Jenni Nurmi
89c62999be Create PayoutDetailsAddress subcomponent and edit address config 2018-12-10 14:50:21 +02:00
Jenni Nurmi
bcd36e9619 Don't set currenUserHasListings if fetched listing is in draft state 2018-11-16 16:04:26 +02:00
Hannu Lyytikainen
2cf223fbe8 Remove unused code 2018-06-01 01:09:36 +03:00
Vesa Luusua
049f6a7f37 import lodash per file to reduce bundle size 2018-05-18 15:24:09 +03:00
Vesa Luusua
c85dee883e Add legal_entity.type: 'individual' 2018-05-18 14:34:05 +03:00
Vesa Luusua
5aa2ed306c Call stripe.createAccount always before sending tokens to Flex API 2018-05-18 12:08:44 +03:00
Vesa Luusua
83ce3769d5 Change Stripe errors to use camelCased info instead of snake_case 2018-05-16 15:01:51 +03:00
Kimmo Puputti
946cf7f53c Use Image variants instead of sizes 2018-04-16 12:28:43 +03:00
Hannu Lyytikainen
44352901c3 Add a check for empty protectedData object 2018-03-06 15:20:03 +02:00
Hannu Lyytikainen
ae8fbbd567 Pass additional user creation data in protectedData 2018-03-06 14:13:23 +02:00
Kimmo Puputti
abb2d16def Improve data denormalisation
- Use resource refs (id, type) instead of separate type and ids
- Throw an error only when it makes sense
2018-01-19 15:30:12 +02:00
Kimmo Puputti
ed2319e781 Add helper to get denormalised entities from an SDK response 2018-01-19 15:30:12 +02:00
Kimmo Puputti
9a64952105 Separate sdkResponse and apiResponse in naming 2018-01-19 11:16:14 +02:00
Mikko Koski
c8994c11ed Review: Use generic getMarketplaceEntities instead 2018-01-18 12:58:33 +02:00
Boyan Tabakov
e2813fb346 Update to use current API endpoints for own listings 2018-01-18 10:05:20 +02:00
Boyan Tabakov
de47b54462 Fix implementation for finding whether user has any listings
Previously, closed listings wouldn't be returned by the query.
2018-01-18 10:05:20 +02:00
Kimmo Puputti
784e459314 Improve error logging 2018-01-15 11:31:40 +02:00
Kimmo Puputti
b6532d8ee6 Transition ref rename: preauthorize enquiry -> request after enquiry 2018-01-11 14:44:10 +02:00
Kimmo Puputti
135a6dab7e Transition ref rename: preauthorize -> request 2018-01-11 14:43:43 +02:00
Kimmo Puputti
f0b955dc5b Refactor propTypes module
- Rename types
- Collect propTypes within a named propTypes export
- Use named imports for easier refactoring and customisation later
- Rename sdk types to sdkTypes in imports to avoid confusion
2018-01-11 11:40:03 +02:00
Kimmo Puputti
86e750610e Update snapshots and formatting after rebase 2018-01-04 12:35:32 +02:00
Kimmo Puputti
b9f23e7714 Add Stripe error message to Sentry data 2018-01-04 12:21:04 +02:00
Kimmo Puputti
45dd9d9455 Add enquiry prop type handling 2017-12-15 15:48:03 +02:00
sktoiva
9384638e2d Camel case current-user 2017-11-08 11:52:04 +02:00
Kimmo Puputti
ae4ef86bd5 Add selector for current user endpoint errors 2017-11-03 14:50:39 +02:00
Kimmo Puputti
bc4dbeee7b Fix error when data was being loaded while logout was in progress
The Routes component skips calling the possible loadData of a page if
the logout is in progress. However, the logoutSuccess and the
clearCurrentUser actions were dispatched in an order that cleared the
user from the store before the logout was marked done.

The fix was to order the actions so that the logout is marked done
first and then all the cleanup is done.

A better solution in the future would be to batch actions so that
extra render loops are avoided when dispatching multiple actions at
once.
2017-10-27 09:16:56 +03:00
Kimmo Puputti
e82a775049 Add Routing duck to track location changes 2017-10-25 17:02:38 +03:00
Kimmo Puputti
b2b6bc8efe Remove authInfoError handling from UI 2017-10-23 16:25:05 +03:00
Vesa Luusua
f29854a4d8 user.duck uses storableError 2017-10-18 18:13:09 +03:00
Vesa Luusua
171c86d6eb EmailVerification.duck uses storableError 2017-10-18 18:13:09 +03:00
Vesa Luusua
13df1c3abb Auth.duck uses storableError 2017-10-18 18:13:09 +03:00
Kimmo Puputti
90ab9c9a69 Format with latest Prettier 2017-10-13 10:11:51 +03:00