mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 09:08:09 +08:00
Add button method for checkout context
This commit is contained in:
parent
473b286de0
commit
82f46baa16
2 changed files with 41 additions and 0 deletions
|
@ -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>';
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue