mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-01 07:02:48 +08:00
Block Checkout: Fix the Express Checkout PayPal buttons on the front end
This commit is contained in:
parent
40e8aa2874
commit
6139f071e5
1 changed files with 1 additions and 0 deletions
|
@ -609,6 +609,7 @@ if (block_enabled) {
|
|||
ariaLabel: config.title,
|
||||
canMakePayment: async () => {
|
||||
if (!paypalScriptPromise) {
|
||||
config.scriptData.url_params.components = 'buttons';
|
||||
paypalScriptPromise = loadPaypalScriptPromise(config.scriptData);
|
||||
paypalScriptPromise.then(() => {
|
||||
const messagesBootstrap = new BlockCheckoutMessagesBootstrap(config.scriptData);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue