🐛 Fix issue with duplicate button instances

On Block Checkout pages, there were multiple PaymentButton instances for the same context.
This commit is contained in:
Philipp Stracker 2024-08-07 22:36:35 +02:00
parent 95c7d4f7bc
commit e9c557a361
No known key found for this signature in database
3 changed files with 66 additions and 2 deletions

View file

@ -20,7 +20,7 @@ class GooglepayManager {
bootstrap.handler
);
const button = new GooglepayButton(
const button = GooglepayButton.createButton(
bootstrap.context,
bootstrap.handler,
buttonConfig,