woocommerce/plugins/woocommerce-blocks/assets/js/base/hooks/payment-methods
Darren Ethier 30fb8bef28 Fix flaw with event emitters and complete checkout flow for the cheque payment method. (https://github.com/woocommerce/woocommerce-blocks/pull/2108)
* Allow for priority to be set on event emitters

* Add payment event emitters

* add new actions/status to checkout state context

* implement event emitters in payment data context

* refactor checkout state context to use new actions in event emitters

* refactor checkout processor to handle new event emitters

* fix type-defs for registered payment methods

* register observer for cheque payment method integration

* add inline todo

* fix sort

* fix tests and add test for priority usage in event emitters

* remove todo and just add explanatory comment

* condense sort logic

* lowercase test description

* abstract emitter callback to reduce code

* don’t process passed in errors if it’s undefined

* improve error response expectation for payment processing event observer
2020-04-03 07:50:54 -04:00
..
test Update/extract prepare total items to utility (https://github.com/woocommerce/woocommerce-blocks/pull/1950) 2020-03-11 21:08:20 -04:00
index.js Update/extract prepare total items to utility (https://github.com/woocommerce/woocommerce-blocks/pull/1950) 2020-03-11 21:08:20 -04:00
use-payment-method-interface.js Fix flaw with event emitters and complete checkout flow for the cheque payment method. (https://github.com/woocommerce/woocommerce-blocks/pull/2108) 2020-04-03 07:50:54 -04:00
use-payment-methods.js Move payment method registration state to payment data context and add saved payment methods handling (https://github.com/woocommerce/woocommerce-blocks/pull/2029) 2020-03-26 07:11:46 -04:00