mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
Add block support in GooglePay
This commit is contained in:
parent
eff390f564
commit
6a205d1413
8 changed files with 232 additions and 19 deletions
|
@ -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');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue