mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Merge branch 'trunk' into wip/apple-google-combined
This commit is contained in:
commit
2298a5fb1b
11 changed files with 181 additions and 100 deletions
|
@ -20,6 +20,7 @@ import FormSaver from './modules/Helper/FormSaver';
|
|||
import FormValidator from "./modules/Helper/FormValidator";
|
||||
import {loadPaypalScript} from "./modules/Helper/ScriptLoading";
|
||||
import buttonModuleWatcher from "./modules/ButtonModuleWatcher";
|
||||
import MessagesBootstrap from "./modules/ContextBootstrap/MessagesBootstap";
|
||||
|
||||
// TODO: could be a good idea to have a separate spinner for each gateway,
|
||||
// but I think we care mainly about the script loading, so one spinner should be enough.
|
||||
|
@ -165,7 +166,6 @@ const bootstrap = () => {
|
|||
const singleProductBootstrap = new SingleProductBootstap(
|
||||
PayPalCommerceGateway,
|
||||
renderer,
|
||||
messageRenderer,
|
||||
errorHandler,
|
||||
);
|
||||
|
||||
|
@ -177,7 +177,6 @@ const bootstrap = () => {
|
|||
const cartBootstrap = new CartBootstrap(
|
||||
PayPalCommerceGateway,
|
||||
renderer,
|
||||
messageRenderer,
|
||||
errorHandler,
|
||||
);
|
||||
|
||||
|
@ -189,7 +188,6 @@ const bootstrap = () => {
|
|||
const checkoutBootstap = new CheckoutBootstap(
|
||||
PayPalCommerceGateway,
|
||||
renderer,
|
||||
messageRenderer,
|
||||
spinner,
|
||||
errorHandler,
|
||||
);
|
||||
|
@ -210,6 +208,11 @@ const bootstrap = () => {
|
|||
buttonModuleWatcher.registerContextBootstrap('pay-now', payNowBootstrap);
|
||||
}
|
||||
|
||||
const messagesBootstrap = new MessagesBootstrap(
|
||||
PayPalCommerceGateway,
|
||||
messageRenderer,
|
||||
);
|
||||
messagesBootstrap.init();
|
||||
};
|
||||
|
||||
document.addEventListener(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue