Vesa Luusua
47fb3b2951
CheckoutPage.duck: fetch stripeCustomer relantionship for currentUser
2019-08-22 15:44:14 +03:00
Vesa Luusua
5854ff0ecc
Update CheckoutPage container:
...
Combine initiateOrder and initiateOrderAfterEnquiry thunk functions
Use PaymentIntents flow:
initiateOrder (SDK), handleCardPayment(Stripe), confirmPayment (SDK), sendMessage (SDK)
2019-07-02 13:13:53 +03:00
Vesa Luusua
a7b7c58d80
Extract transaction related code to its own util file
...
from types.js
2019-01-30 14:20:59 +02:00
Hannu Lyytikainen
bbac34a0e5
Add initiate order after enquiry
...
If enquired transaction is avalable transition it to prequthorized on
checkout page.
2018-12-20 18:02:29 +02:00
Hannu Lyytikainen
7cc30ee3ef
Pass booking data from tx page to checkout
2018-12-20 18:02:29 +02:00
Vesa Luusua
049f6a7f37
import lodash per file to reduce bundle size
2018-05-18 15:24:09 +03:00
Vesa Luusua
181883862d
Add configurable processAlias (new API feature)
2018-05-03 13:01:46 +03:00
Vesa Luusua
0ed1d879a5
Always add error info to Sentry logging
2018-03-16 12:10:07 +02:00
Kimmo Puputti
3877ef83f0
Log more info in tx handling errors
2018-03-05 10:08:26 +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
ed2319e781
Add helper to get denormalised entities from an SDK response
2018-01-19 15:30:12 +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
683b989e1f
Use propTypes instead of hardcoded transition string
2017-12-19 10:40:20 +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
Vesa Luusua
c1d111d11a
CheckoutPage uses storableError func and correct proptype validation.
2017-10-18 18:13:10 +03:00
Kimmo Puputti
90ab9c9a69
Format with latest Prettier
2017-10-13 10:11:51 +03:00
Hannu Lyytikainen
e1a820fa18
Add more extra data to log requests
2017-10-04 14:04:12 +03:00
Hannu Lyytikainen
b35658accb
Remove log.duck.js
2017-10-04 13:17:43 +03:00
Hannu Lyytikainen
2cfd3deaa1
Move clearUserId to Auth.duck.js
...
Clear user ID from the logger in logout thunk instead of the Topbar.
Also call dispatch logging function also as the last action of a thunk
function where possible.
2017-10-04 13:17:43 +03:00
Hannu Lyytikainen
de5ec59119
Add error codes
...
An error code can be passed to logger. This code gets added to the
Sentry error report as a tag and can be used to search this specific
error.
2017-10-04 13:17:43 +03:00
Hannu Lyytikainen
3c4f20f2ad
Add log.duck.js
...
Logging requests from duck files can now be dispatched to a logging
thunk action that does not interrupt the application.
2017-10-04 13:16:28 +03:00
Hannu Lyytikainen
e35628660c
Change the way util/log.js is imported
...
Always import the whole module when using util/log.js.
2017-10-04 13:16:28 +03:00
Hannu Lyytikainen
f95702c313
Add error logging
2017-10-04 13:16:28 +03:00
Vesa Luusua
dc4145f82d
After checkout update currentUserHasOrders data
2017-09-14 12:52:40 +03:00
Kimmo Puputti
765f754a6e
Improve documentation
2017-09-05 12:20:48 +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
0747fc170a
Fetch current user on app init instead of in various loadData fns
2017-04-28 14:17:06 +03:00
Kimmo Puputti
126beafe09
Allow logged out user start booking
2017-04-20 09:34:05 +03:00
Vesa Luusua
3202962737
Handle submit and redirect to CheckoutPage
2017-04-12 16:47:10 +03:00
Kimmo Puputti
9145f43ee0
Add CheckoutPage duck with order initiation
2017-04-11 15:16:23 +03:00