mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-31 06:52:50 +08:00
👔 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:
parent
264965856a
commit
3a0a771e8d
1 changed files with 3 additions and 1 deletions
|
@ -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 );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue