Commit graph

76 commits

Author SHA1 Message Date
Jenni Nurmi
299358f1d2 Show error if payment amount is zero 2018-11-26 13:34:58 +02:00
Jenni Nurmi
381b6d8191 Show Stripe error message if error contains Stripe error 2018-11-23 12:56:41 +02:00
Hannu Lyytikainen
5e1aa7b244 Add error handling for initiate request 2018-08-10 08:37:21 +03:00
Hannu Lyytikainen
1706f22e52 Add error handling to checkout page
Add handling for the tx time already booked error to checkout page.
2018-08-09 15:43:28 +03:00
Vesa Luusua
2e4aa51a62 CheckoutPage logo: use Logo component and center it. 2018-06-26 12:40:14 +03:00
Vesa Luusua
a3872e71f5 CheckoutPage: selected booking dates should be available after login 2018-06-25 14:27:51 +03:00
Vesa Luusua
af088fff8f Fix form references after moving them to different location 2018-05-02 15:56:30 +03:00
Kimmo Puputti
946cf7f53c Use Image variants instead of sizes 2018-04-16 12:28:43 +03:00
Vesa Luusua
27cffb31da Fix back-to-checkoutpage-from-transactionpage bug 2018-04-06 12:08:07 +03:00
Vesa Luusua
598c3ab99e review changes 2018-03-28 23:32:49 +13:00
Vesa Luusua
b2fd6db90a convert dates to relevant API date / UTC moment 2018-03-27 01:47:30 -11:00
Vesa Luusua
180103f966 Fix old param change (no effect to functionality) 2018-03-27 01:47:29 -11:00
Kimmo Puputti
4f91b2aa9e Handle speculation errors properly in checkout
- Hide form if speculation failed
- Add specific error message for missing author Stripe account
- Add generic error message for other speculation errors
2018-02-28 09:55:47 +02:00
Vesa Luusua
7551fec85e Add notes about missing quantity prop when unitType is line-item/units 2018-02-02 16:20:37 +02:00
Vesa Luusua
b310613017 Refactor fetchSpeculatedTransaction to accommodate booking data easily if needed 2018-02-02 16:20:36 +02:00
Vesa Luusua
239eb1fad2 Enable passing booking data (like quantity, color) in addition to BookingDates 2018-02-02 16:20:36 +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
14763906c5 Make booking unit type configurable 2018-01-03 13:22:17 +02:00
Vesa Luusua
cbc1fcc05c TransactionPage 2017-12-15 02:10:34 +02:00
Kimmo Puputti
030e66c7d3 Send initial tx message from checkout 2017-11-09 13:51:34 +02:00
Kimmo Puputti
27ea4a66f2 Allow adding a message in the StripePaymentForm 2017-11-09 13:50:39 +02:00
Kimmo Puputti
14d9b0745d Remove heading from page (will be moved to the form) 2017-11-09 13:50:39 +02:00
Kimmo Puputti
d9ad1507f9 Call submit with an object that can be extended 2017-11-09 13:50:39 +02:00
Kimmo Puputti
807c5005ed Make avatars into links to the user profile page 2017-11-07 11:18:23 +02:00
Kimmo Puputti
6edac96811 Require scrollingDisabled prop 2017-11-03 13:12:24 +02:00
Kimmo Puputti
007e140afb Remove logoutError prop from Page component
The logout error will be a flash message that the Auth duck sets for
the component that will be responsible for rendering the flash
messages.
2017-11-03 11:36:44 +02:00
Kimmo Puputti
ee51d0d9b2 Remove passing the removed authInfoError prop to Page 2017-10-23 16:27:06 +03:00
Vesa Luusua
c1d111d11a CheckoutPage uses storableError func and correct proptype validation. 2017-10-18 18:13:10 +03:00
Kimmo Puputti
a996f154d1 Import PropTypes from the prop-types package 2017-10-17 09:50:22 +03:00
Kimmo Puputti
90ab9c9a69 Format with latest Prettier 2017-10-13 10:11:51 +03:00
Kimmo Puputti
78de6d9d69 Disable deprecated proptype import lint error 2017-10-12 14:09:02 +03:00
Vesa Luusua
f1682b9021 CheckoutPage: import routeConfiguration and remove context.flattenedRoutes 2017-10-11 14:18:33 +03:00
Kimmo Puputti
5fb5ce42ee Remove unneeded translation param 2017-10-04 14:59:42 +03:00
Kimmo Puputti
67acea907b Show a specific error when the tx amount is too low 2017-10-04 14:51:01 +03:00
Vesa Luusua
30578a65bc Rename PageLayout to Page 2017-09-29 15:15:32 +03:00
Kimmo Puputti
0cae3f1771 Add inProgress state to StripePaymentForm in checkout 2017-09-22 10:13:07 +03:00
Kimmo Puputti
0f8c393afc Improve checkout error handling
- Hide form if there's an error in creating the transaction
 - Improve the error message byt adding instructions on how to continue
2017-09-20 10:34:36 +03:00
Kimmo Puputti
02bbf8b71e Improve error UI 2017-09-19 10:39:06 +03:00
Kimmo Puputti
0f4f57c9be Handle listing deleted/closed error in checkout 2017-09-19 10:23:08 +03:00
Vesa Luusua
f4176ae8ab Error from speculated transaction - no listing 2017-09-12 20:06:24 +03:00
Kimmo Puputti
fb305e42fe Use the whole tx and booking objects breakdown 2017-09-05 15:40:28 +03:00
Kimmo Puputti
bfdc7241ec Init data before mounting to avoid extra renders 2017-09-05 12:21:45 +03:00
Kimmo Puputti
8fe4aa2bce Use the speculative API to get the transaction for the breakdown 2017-09-01 14:33:05 +03:00
Kimmo Puputti
178937ab27 Try not to pass around subUnitDivisor 2017-08-28 11:14:22 +03:00
Kimmo Puputti
55e9574ce8 Avoid passing around currencyConfig 2017-08-25 10:59:15 +03:00
Kimmo Puputti
a214a04901 Remove subUnitDivisor from convertMoneyToNumber params 2017-08-25 10:09:52 +03:00
Kimmo Puputti
852d8250f2 Use displayName/abbreviatedName of the user
The API changed from having firstName/lastName in the user object
profile. The displayName/abbreviatedName should be used instead.
2017-08-21 10:18:49 +03:00
Kimmo Puputti
f0ca0564dd New URL schema for creating a listing
The URL will now always have an id and a slug so that new/edit listing
wizards can be generalised. When creating a new listing, temporary id
and slug are put to the URL.
2017-08-10 12:29:39 +03:00
Vesa Luusua
48c47633ab CheckoutPage: desktop layout and listing image to mobile layout 2017-08-08 17:53:07 +03:00
Vesa Luusua
81ec93b57f CheckoutPage: Moving helper functions away from main js-file 2017-08-08 16:45:40 +03:00