mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-31 06:52:50 +08:00
Remove the new loader from the SingleProductBootstrap
This commit is contained in:
parent
733eee08a2
commit
5970aeaceb
1 changed files with 2 additions and 4 deletions
|
@ -2,7 +2,7 @@ import UpdateCart from '../Helper/UpdateCart';
|
|||
import SingleProductActionHandler from '../ActionHandler/SingleProductActionHandler';
|
||||
import { hide, show } from '../Helper/Hiding';
|
||||
import BootstrapHelper from '../Helper/BootstrapHelper';
|
||||
import { loadAndRenderPayPalScript } from '../Helper/PayPalScriptLoading';
|
||||
import { loadPaypalJsScript } from '../Helper/ScriptLoading';
|
||||
import { getPlanIdFromVariation } from '../Helper/Subscriptions';
|
||||
import SimulateCart from '../Helper/SimulateCart';
|
||||
import { strRemoveWord, strAddWord, throttle } from '../Helper/Utils';
|
||||
|
@ -38,7 +38,6 @@ class SingleProductBootstap {
|
|||
);
|
||||
|
||||
this.subscriptionButtonsLoaded = false;
|
||||
this.namespace = 'ppcpPaypalSingleProduct';
|
||||
}
|
||||
|
||||
form() {
|
||||
|
@ -255,8 +254,7 @@ class SingleProductBootstap {
|
|||
if ( this.subscriptionButtonsLoaded ) {
|
||||
return;
|
||||
}
|
||||
loadAndRenderPayPalScript(
|
||||
this.namespace,
|
||||
loadPaypalJsScript(
|
||||
{
|
||||
clientId: PayPalCommerceGateway.client_id,
|
||||
currency: PayPalCommerceGateway.currency,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue