d641d2e1a4
* Show all payment methods when it's an admin and let the error boundary handle errors * Use StoreNoticesContainer in Payment method error boundary so notices have styling * Filter out saved payment methods for admin users if they don't accept payments * Simplify update options logic * For admins, only show payment methods that errored but canPay was not false * Simplify how new payment method option is appended * Wrap canMakePayment in a try catch block to handle payment methods that throw an error * Add an id to payment method error boundary errors * Add an error boundary to express payment methods * Hardcode failing content and savePaymentInfo to false if the payment method failed * Add some new comments * Add a notice instead of registering the payment method if it fails and user is admin * Throw error early if stripe failed to load * Split express and standard payment method error notices * Don't add payment methods in the editor and instead add a notice * Fix error id * Use noticeContext constant * Add missing JSdoc param * Remove unnecessary removeNotice |
||
---|---|---|
.. | ||
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 |