mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
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
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:
commit
f6b26a33ac
1 changed files with 25 additions and 0 deletions
|
@ -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
|
||||
},
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue