mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
🐛 Fix issue with duplicate button instances
On Block Checkout pages, there were multiple PaymentButton instances for the same context.
This commit is contained in:
parent
95c7d4f7bc
commit
e9c557a361
3 changed files with 66 additions and 2 deletions
|
@ -90,9 +90,9 @@ class GooglepayButton extends PaymentButton {
|
|||
|
||||
constructor(
|
||||
context,
|
||||
externalHandler,
|
||||
buttonConfig,
|
||||
ppcpConfig,
|
||||
externalHandler,
|
||||
contextHandler
|
||||
) {
|
||||
super( context, buttonConfig, ppcpConfig );
|
||||
|
|
|
@ -20,7 +20,7 @@ class GooglepayManager {
|
|||
bootstrap.handler
|
||||
);
|
||||
|
||||
const button = new GooglepayButton(
|
||||
const button = GooglepayButton.createButton(
|
||||
bootstrap.context,
|
||||
bootstrap.handler,
|
||||
buttonConfig,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue