mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-08 21:52:55 +08:00
🚧 Rename ConnectManual endpoint
This is a preparation to include the UI login authentication in the same endpoint as the manual connection logic
This commit is contained in:
parent
69f6cc2e73
commit
f9809bdc53
3 changed files with 10 additions and 10 deletions
|
@ -38,11 +38,11 @@ export const REST_PERSIST_PATH = '/wc/v3/wc_paypal/common';
|
|||
* REST path to perform the manual connection check, using client ID and secret,
|
||||
*
|
||||
* Used by: Controls
|
||||
* See: ConnectManualRestEndpoint.php
|
||||
* See: AuthenticateRestEndpoint.php
|
||||
*
|
||||
* @type {string}
|
||||
*/
|
||||
export const REST_MANUAL_CONNECTION_PATH = '/wc/v3/wc_paypal/connect_manual';
|
||||
export const REST_MANUAL_CONNECTION_PATH = '/wc/v3/wc_paypal/authenticate';
|
||||
|
||||
/**
|
||||
* REST path to generate an ISU URL for the PayPal-login.
|
||||
|
|
|
@ -14,7 +14,7 @@ use WooCommerce\PayPalCommerce\Settings\Data\CommonSettings;
|
|||
use WooCommerce\PayPalCommerce\Settings\Data\GeneralSettings;
|
||||
use WooCommerce\PayPalCommerce\Settings\Data\OnboardingProfile;
|
||||
use WooCommerce\PayPalCommerce\Settings\Endpoint\CommonRestEndpoint;
|
||||
use WooCommerce\PayPalCommerce\Settings\Endpoint\ConnectManualRestEndpoint;
|
||||
use WooCommerce\PayPalCommerce\Settings\Endpoint\AuthenticationRestEndpoint;
|
||||
use WooCommerce\PayPalCommerce\Settings\Endpoint\LoginLinkRestEndpoint;
|
||||
use WooCommerce\PayPalCommerce\Settings\Endpoint\OnboardingRestEndpoint;
|
||||
use WooCommerce\PayPalCommerce\Settings\Endpoint\RefreshFeatureStatusEndpoint;
|
||||
|
@ -79,8 +79,8 @@ return array(
|
|||
$container->get( 'woocommerce.logger.woocommerce' )
|
||||
);
|
||||
},
|
||||
'settings.rest.connect_manual' => static function ( ContainerInterface $container ) : ConnectManualRestEndpoint {
|
||||
return new ConnectManualRestEndpoint(
|
||||
'settings.rest.connect_manual' => static function ( ContainerInterface $container ) : AuthenticationRestEndpoint {
|
||||
return new AuthenticationRestEndpoint(
|
||||
$container->get( 'settings.service.connection_manager' ),
|
||||
);
|
||||
},
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
/**
|
||||
* REST controller for connection via manual credentials input.
|
||||
* REST controller for authenticating a PayPal merchant.
|
||||
*
|
||||
* @package WooCommerce\PayPalCommerce\Settings\Endpoint
|
||||
*/
|
||||
|
@ -23,15 +23,15 @@ use WooCommerce\PayPalCommerce\Settings\Data\GeneralSettings;
|
|||
use WooCommerce\PayPalCommerce\Settings\Service\ConnectionManager;
|
||||
|
||||
/**
|
||||
* REST controller for connection via manual credentials input.
|
||||
* REST controller for connection to a PayPal merchant account.
|
||||
*/
|
||||
class ConnectManualRestEndpoint extends RestEndpoint {
|
||||
class AuthenticationRestEndpoint extends RestEndpoint {
|
||||
/**
|
||||
* The base path for this REST controller.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $rest_base = 'connect_manual';
|
||||
protected $rest_base = 'authenticate';
|
||||
|
||||
/**
|
||||
* Field mapping for request.
|
||||
|
@ -68,7 +68,7 @@ class ConnectManualRestEndpoint extends RestEndpoint {
|
|||
);
|
||||
|
||||
/**
|
||||
* ConnectManualRestEndpoint constructor.
|
||||
* Constructor.
|
||||
*
|
||||
* @param ConnectionManager $connection_manager The connection manager.
|
||||
*/
|
Loading…
Add table
Add a link
Reference in a new issue