Add block support in GooglePay

This commit is contained in:
Pedro Silva 2023-08-25 16:25:20 +01:00
parent eff390f564
commit 6a205d1413
No known key found for this signature in database
GPG key ID: E2EE20C0669D24B3
8 changed files with 232 additions and 19 deletions

View file

@ -262,24 +262,24 @@ class GooglepayManager {
);
// == checkout page ==
const spinner = new Spinner();
const actionHandler = new CheckoutActionHandler(
this.ppcpConfig,
errorHandler,
spinner
);
let id = await actionHandler.configuration().createOrder(null, null);
// == cart page ==
// const actionHandler = new CartActionHandler(
// const spinner = new Spinner();
//
// const actionHandler = new CheckoutActionHandler(
// this.ppcpConfig,
// errorHandler,
// spinner
// );
//
// let id = await actionHandler.configuration().createOrder(null, null);
// == cart page ==
const actionHandler = new CartActionHandler(
this.ppcpConfig,
errorHandler,
);
let id = await actionHandler.configuration().createOrder(null, null);
// == product page ==
// function form() {
// return document.querySelector('form.cart');