mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 14:57:26 +08:00
💡 Explain diff between LoginLink & Authentication
This commit is contained in:
parent
f9809bdc53
commit
f73f1808a7
2 changed files with 16 additions and 2 deletions
|
@ -23,7 +23,14 @@ use WooCommerce\PayPalCommerce\Settings\Data\GeneralSettings;
|
|||
use WooCommerce\PayPalCommerce\Settings\Service\ConnectionManager;
|
||||
|
||||
/**
|
||||
* REST controller for connection to a PayPal merchant account.
|
||||
* REST controller for authenticating and connecting to a PayPal merchant account.
|
||||
*
|
||||
* This endpoint is responsible for verifying credentials and establishing
|
||||
* a connection, regardless of whether they are provided via:
|
||||
* 1. Direct login (clientId + secret)
|
||||
* 2. UI-driven login (sharedId + authCode)
|
||||
*
|
||||
* It handles the actual authentication process after the login URL has been used.
|
||||
*/
|
||||
class AuthenticationRestEndpoint extends RestEndpoint {
|
||||
/**
|
||||
|
|
|
@ -15,7 +15,14 @@ use WP_REST_Request;
|
|||
use WooCommerce\PayPalCommerce\Settings\Service\ConnectionUrlGenerator;
|
||||
|
||||
/**
|
||||
* REST controller that generates merchant login URLs.
|
||||
* REST controller that generates merchant login URLs for PayPal.
|
||||
*
|
||||
* This endpoint is responsible solely for generating a URL that initiates
|
||||
* the PayPal login flow. It does not handle the authentication itself.
|
||||
*
|
||||
* The generated URL is typically used to redirect merchants to PayPal's login page.
|
||||
* After successful login, the authentication process is completed via the
|
||||
* AuthenticationRestEndpoint.
|
||||
*/
|
||||
class LoginLinkRestEndpoint extends RestEndpoint {
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue