Merge pull request #3589 from woocommerce/PCP-5058-add-fastlane-support-for-au-merchants
Some checks failed
CI / PHP 7.4 (push) Has been cancelled
CI / PHP 8.0 (push) Has been cancelled
CI / PHP 8.1 (push) Has been cancelled
CI / PHP 8.2 (push) Has been cancelled
CI / PHP 8.3 (push) Has been cancelled
CI / PHP 8.4 (push) Has been cancelled
PR Playground Demo / prepare_version (push) Has been cancelled
PR Playground Demo / build_plugin (push) Has been cancelled
PR Playground Demo / create_archive (push) Has been cancelled
PR Playground Demo / Comment on PR with Playground details (push) Has been cancelled

Add Fastlane support for AU/AUD (5058)
This commit is contained in:
Emili Castells 2025-08-19 14:15:03 +02:00 committed by GitHub
commit f6b26a33ac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -170,6 +170,10 @@ return array(
$matrix['GB'] = array( 'GBP' );
}
if ( $container->get( 'axo.au.enabled' ) ) {
$matrix['AU'] = array( 'AUD' );
}
/**
* Returns which countries and currency combinations can be used for AXO.
*/
@ -206,6 +210,14 @@ return array(
);
}
if ( $container->get( 'axo.au.enabled' ) ) {
$matrix['AU'] = array(
'VISA',
'MASTERCARD',
'AMEX',
);
}
/**
* Returns which countries and card type combinations can be used for AXO.
*/
@ -417,4 +429,17 @@ return array(
);
// phpcs:enable WordPress.NamingConventions.ValidHookName.UseUnderscores
},
'axo.au.enabled' => static function ( ContainerInterface $container ): bool {
// phpcs:disable WordPress.NamingConventions.ValidHookName.UseUnderscores
/**
* Filter to determine if Fastlane AU should be enabled.
*
* @param bool $enabled Whether Fastlane AU is enabled.
*/
return apply_filters(
'woocommerce.feature-flags.woocommerce_paypal_payments.axo_au_enabled',
getenv( 'PCP_AXO_AU_ENABLED' ) !== '0'
);
// phpcs:enable WordPress.NamingConventions.ValidHookName.UseUnderscores
},
);