💡 Add comments to document auth flow

This commit is contained in:
Philipp Stracker 2025-01-02 18:52:47 +01:00
parent de3ab2c479
commit 143bcd75a1
No known key found for this signature in database

View file

@ -87,6 +87,8 @@ class ConnectionManager {
/**
* Checks if the provided ID and secret have a valid format.
*
* Part of the "Direct Connection" (Manual Connection) flow.
*
* On failure, an Exception is thrown, while a successful check does not
* generate any return value.
*
@ -113,6 +115,8 @@ class ConnectionManager {
* Disconnects the current merchant, and then attempts to connect to a
* PayPal account using a client ID and secret.
*
* Part of the "Direct Connection" (Manual Connection) flow.
*
* @param bool $use_sandbox Whether to use the sandbox mode.
* @param string $client_id The client ID.
* @param string $client_secret The client secret.