Remove ApplicationContext

This commit is contained in:
Alex P. 2025-05-29 19:49:43 +03:00
parent ab5ddd9fab
commit da45fb1baf
No known key found for this signature in database
GPG key ID: 54487A734A204D71
23 changed files with 76 additions and 707 deletions

View file

@ -9,7 +9,7 @@ declare(strict_types=1);
namespace WooCommerce\PayPalCommerce\Compat\Settings;
use WooCommerce\PayPalCommerce\ApiClient\Entity\ApplicationContext;
use WooCommerce\PayPalCommerce\ApiClient\Entity\ExperienceContext;
use WooCommerce\PayPalCommerce\ApiClient\Helper\PurchaseUnitSanitizer;
use WooCommerce\PayPalCommerce\Button\Helper\ContextTrait;
@ -104,10 +104,10 @@ class SettingsTabMapHelper {
}
return $landing_page === 'login'
? ApplicationContext::LANDING_PAGE_LOGIN
? ExperienceContext::LANDING_PAGE_LOGIN
: ( $landing_page === 'guest_checkout'
? ApplicationContext::LANDING_PAGE_BILLING
: ApplicationContext::LANDING_PAGE_NO_PREFERENCE
? ExperienceContext::LANDING_PAGE_GUEST_CHECKOUT
: ExperienceContext::LANDING_PAGE_NO_PREFERENCE
);
}