ce6dd93e7b
* refactor and reorder checkout processing * improve handling of checkout POST with mixed success: - return coupon errors in a property - don't throw from coupon validation: - return info about errors to route handler - tweak logic in route handler to prevent subsequent processing - default payment result to fail to avoid accidental successful checkout - in client, catch errors and new customer id: - render any errors as notices - i.e. coupon error - if a customer ID is included, push into store (so UI updates) * fix linter whitespace issue from rebase merge * fix MIA order validation/errors (due to rebase): - reinstate thrown exception when validating order - return exception was an experiment, now solved in woocommerce/woocommerce-blocks#3454 * hide "Create account" checkbox if account is created during an error response: - update store with new user id - remove stale response.errors handling; - current approach (https://github.com/woocommerce/woocommerce-blocks/pull/3454) is to add data to error response * show a notice informing user that they have signed up * white space * Handle header and update typedef * Remove "errors" schema * remove errors Co-authored-by: Mike Jolley <mike.jolley@me.com> |
||
---|---|---|
.. | ||
add-to-cart-form | ||
cart-checkout | ||
editor | ||
shared | ||
test | ||
container-width-context.js | ||
index.js | ||
query-state-context.js | ||
store-notices-context.js | ||
utils.js |