Add button method for checkout context

This commit is contained in:
Emili Castells Guasch 2024-07-15 18:42:44 +02:00
parent 473b286de0
commit 82f46baa16
2 changed files with 41 additions and 0 deletions

View file

@ -186,6 +186,10 @@ class GooglepayModule implements ModuleInterface {
return $methods;
}
);
add_action('woocommerce_review_order_after_payment', function () {
echo '<div id="ppc-button-' . esc_attr( GooglePayGateway::ID ) . '"></div>';
});
}
/**