Rename the new script loading script

This commit is contained in:
Daniel Dudzic 2024-10-08 00:41:30 +02:00
parent eba3d12e4e
commit e76c8b257b
No known key found for this signature in database
GPG key ID: 31B40D33E3465483
9 changed files with 153 additions and 95 deletions

View file

@ -4,7 +4,7 @@ import {
registerPaymentMethod,
} from '@woocommerce/blocks-registry';
import { __ } from '@wordpress/i18n';
import UnifiedScriptLoader from '../../../ppcp-button/resources/js/modules/Helper/UnifiedScriptLoader';
import { loadPayPalScript } from '../../../ppcp-button/resources/js/modules/Helper/PayPalScriptLoading';
import GooglepayManager from './GooglepayManager';
import { loadCustomScript } from '@paypal/paypal-js';
import GooglepayManagerBlockEditor from './GooglepayManagerBlockEditor';
@ -35,7 +35,7 @@ const GooglePayComponent = ( props ) => {
ppcpConfig.url_params.components += ',googlepay';
// Load PayPal
UnifiedScriptLoader.loadPayPalScript( namespace, ppcpConfig )
loadPayPalScript( namespace, ppcpConfig )
.then( () => {
setPaypalLoaded( true );
} )