👔 Mark business-seller during direct API-login

Assuming that only business sellers have access to a Client ID and Client Secret.
This commit is contained in:
Philipp Stracker 2025-02-10 18:02:05 +01:00
parent 264965856a
commit 3a0a771e8d
No known key found for this signature in database

View file

@ -23,6 +23,7 @@ use WooCommerce\PayPalCommerce\WcGateway\Helper\EnvironmentConfig;
use WooCommerce\WooCommerce\Logging\Logger\NullLogger;
use WooCommerce\PayPalCommerce\Settings\DTO\MerchantConnectionDTO;
use WooCommerce\PayPalCommerce\Webhooks\WebhookRegistrar;
use WooCommerce\PayPalCommerce\Settings\Enum\SellerTypeEnum;
/**
* Class that manages the connection to PayPal.
@ -186,7 +187,8 @@ class AuthenticationManager {
$client_id,
$client_secret,
$payee['merchant_id'],
$payee['email_address']
$payee['email_address'],
SellerTypeEnum::BUSINESS
);
$this->update_connection_details( $connection );