From 804f210f1ff7b7b4642596259ac45dd8e50ce5c9 Mon Sep 17 00:00:00 2001 From: Daniel Dudzic Date: Tue, 12 Aug 2025 17:03:19 +0200 Subject: [PATCH 1/4] =?UTF-8?q?=E2=9C=A8=20Add=20Fastlane=20support=20for?= =?UTF-8?q?=20AU/AUD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/ppcp-axo/services.php | 25 +++++++++++++++++++++++++ modules/ppcp-wc-gateway/services.php | 2 +- 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/modules/ppcp-axo/services.php b/modules/ppcp-axo/services.php index dab7f51a5..496af2c30 100644 --- a/modules/ppcp-axo/services.php +++ b/modules/ppcp-axo/services.php @@ -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 with 3D Secure 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 + }, ); diff --git a/modules/ppcp-wc-gateway/services.php b/modules/ppcp-wc-gateway/services.php index fc0f178ce..8a7e1ccc3 100644 --- a/modules/ppcp-wc-gateway/services.php +++ b/modules/ppcp-wc-gateway/services.php @@ -2161,7 +2161,7 @@ return array( * * @returns InboxNoteInterface[] */ - 'wcgateway.settings.inbox-notes' => static function( ContainerInterface $container ): array { + 'wcgateway.settings.inbox-notes' => static function( ContainerInterface $container ): array { $inbox_note_factory = $container->get( 'wcgateway.settings.inbox-note-factory' ); assert( $inbox_note_factory instanceof InboxNoteFactory ); From 249bd383db3d810ddebb94128e31e310a08a7c7d Mon Sep 17 00:00:00 2001 From: Daniel Dudzic Date: Tue, 12 Aug 2025 19:22:33 +0200 Subject: [PATCH 2/4] =?UTF-8?q?=F0=9F=A7=B9Update=20code=20comments?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/ppcp-axo/services.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/ppcp-axo/services.php b/modules/ppcp-axo/services.php index 496af2c30..64c617ae1 100644 --- a/modules/ppcp-axo/services.php +++ b/modules/ppcp-axo/services.php @@ -432,9 +432,9 @@ return array( 'axo.au.enabled' => static function ( ContainerInterface $container ): bool { // phpcs:disable WordPress.NamingConventions.ValidHookName.UseUnderscores /** - * Filter to determine if Fastlane AU with 3D Secure should be enabled. + * Filter to determine if Fastlane Australia with 3D Secure should be enabled. * - * @param bool $enabled Whether Fastlane AU is enabled. + * @param bool $enabled Whether Fastlane Australia is enabled. */ return apply_filters( 'woocommerce.feature-flags.woocommerce_paypal_payments.axo_au_enabled', From 714c42aafcc6d9652119ec95893ab9fad629d18f Mon Sep 17 00:00:00 2001 From: Daniel Dudzic Date: Tue, 12 Aug 2025 19:47:24 +0200 Subject: [PATCH 3/4] =?UTF-8?q?=F0=9F=A7=B9=20Update=20the=20code=20commen?= =?UTF-8?q?t?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/ppcp-axo/services.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ppcp-axo/services.php b/modules/ppcp-axo/services.php index 64c617ae1..8803e0ab9 100644 --- a/modules/ppcp-axo/services.php +++ b/modules/ppcp-axo/services.php @@ -432,7 +432,7 @@ return array( 'axo.au.enabled' => static function ( ContainerInterface $container ): bool { // phpcs:disable WordPress.NamingConventions.ValidHookName.UseUnderscores /** - * Filter to determine if Fastlane Australia with 3D Secure should be enabled. + * Filter to determine if Fastlane Australia should be enabled. * * @param bool $enabled Whether Fastlane Australia is enabled. */ From 40f08f4cfc6983e9df2a2402416cf49a3309dd04 Mon Sep 17 00:00:00 2001 From: Daniel Dudzic Date: Tue, 12 Aug 2025 20:09:56 +0200 Subject: [PATCH 4/4] =?UTF-8?q?=F0=9F=A7=B9=20Update=20the=20code=20commen?= =?UTF-8?q?t?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/ppcp-axo/services.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/ppcp-axo/services.php b/modules/ppcp-axo/services.php index 8803e0ab9..cfe8e325f 100644 --- a/modules/ppcp-axo/services.php +++ b/modules/ppcp-axo/services.php @@ -432,9 +432,9 @@ return array( 'axo.au.enabled' => static function ( ContainerInterface $container ): bool { // phpcs:disable WordPress.NamingConventions.ValidHookName.UseUnderscores /** - * Filter to determine if Fastlane Australia should be enabled. + * Filter to determine if Fastlane AU should be enabled. * - * @param bool $enabled Whether Fastlane Australia is enabled. + * @param bool $enabled Whether Fastlane AU is enabled. */ return apply_filters( 'woocommerce.feature-flags.woocommerce_paypal_payments.axo_au_enabled',