Refactor script loading to allow for adding custom namespaces

This commit is contained in:
Daniel Dudzic 2024-07-26 12:39:38 +02:00
parent d769acf144
commit 09ff65aba4
No known key found for this signature in database
GPG key ID: 31B40D33E3465483
6 changed files with 101 additions and 11 deletions

View file

@ -15,7 +15,7 @@ class ApplepayManagerBlockEditor {
async config() {
try {
this.applePayConfig = await paypal.Applepay().config();
this.applePayConfig = await ppcpBlocksEditorPaypalApplepay.Applepay().config();
const button = new ApplepayButton(
this.ppcpConfig.context,