mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-01 07:02:48 +08:00
Axo: Remove the submit button when Fastlane is disabled
This commit is contained in:
parent
53af77897f
commit
bf52b48ae8
1 changed files with 4 additions and 2 deletions
|
@ -222,9 +222,11 @@ class AxoModule implements ServiceModule, ExtendingModule, ExecutableModule {
|
||||||
// Render submit button.
|
// Render submit button.
|
||||||
add_action(
|
add_action(
|
||||||
$manager->checkout_button_renderer_hook(),
|
$manager->checkout_button_renderer_hook(),
|
||||||
static function () use ( $c, $manager ) {
|
static function () use ( $c, $manager, $module ) {
|
||||||
|
if ( $module->should_render_fastlane( $c ) ) {
|
||||||
$manager->render_checkout_button();
|
$manager->render_checkout_button();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue