mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-03 08:37:53 +08:00
Axo Block: Load ACDC for logged in users in the Block Checkout
This commit is contained in:
parent
7ad1667baa
commit
b037a90e4f
1 changed files with 2 additions and 2 deletions
|
@ -69,8 +69,8 @@ class BlocksModule implements ServiceModule, ExtendingModule, ExecutableModule {
|
|||
function( PaymentMethodRegistry $payment_method_registry ) use ( $c ): void {
|
||||
$payment_method_registry->register( $c->get( 'blocks.method' ) );
|
||||
|
||||
// Include ACDC in the Block Checkout only in case Axo doesn't exist or is not available.
|
||||
if ( ! $c->has( 'axoblock.available' ) || ! $c->get( 'axoblock.available' ) ) {
|
||||
// Include ACDC in the Block Checkout only in case Axo doesn't exist or is not available or the user is logged in.
|
||||
if ( ! $c->has( 'axoblock.available' ) || ! $c->get( 'axoblock.available' ) || is_user_logged_in() ) {
|
||||
$payment_method_registry->register( $c->get( 'blocks.advanced-card-method' ) );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue