Merge pull request #1719 from woocommerce/PCP-2006-google-pay-settings-improvements

Google Pay Settings improvements (2006)
This commit is contained in:
Emili Castells 2023-10-17 14:24:57 +02:00 committed by GitHub
commit c07e8eaa87
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
55 changed files with 1784 additions and 243 deletions

View file

@ -27,6 +27,7 @@ class WidgetBuilder {
setPaypal(paypal) {
this.paypal = paypal;
jQuery(document).trigger('ppcp-paypal-loaded', paypal);
}
registerButtons(wrapper, options) {
@ -177,4 +178,5 @@ class WidgetBuilder {
}
}
export default new WidgetBuilder();
window.widgetBuilder = window.widgetBuilder || new WidgetBuilder();
export default window.widgetBuilder;