Credentials
Cart PayPal needs the credentials of a PayPal app (REST API).
| Credential | Description |
|---|---|
| clientId | The client id of the app. It is public, the JavaScript SDK on the payment page uses it. |
| clientSecret | The secret of the app. |
| webhookId | The id of the webhook of the app, see Webhook. Without it, webhooks are rejected. |
| sandbox | 1 uses the PayPal sandbox, 0 the live system.
Without the setting the sandbox is used. |
Store the credentials in environment variables and read them in
config/, see
Credentials from $GLOBALS['TYPO3_CONF_VARS'].
This is the recommended way.
Use the credentials from the site configuration only if the sites of an installation need different PayPal apps.
Important
The credentials are no site settings and no TypoScript. Site settings are
shown in the backend module Site Settings and in the TypoScript of the
site, and saving them in the backend writes the values of environment
variables into settings.. TypoScript is versioned and deployed with
the project or stored in the database.
If the credentials are to be saved in a different way,
Credentials from own CredentialLoader
describes how to provide the credentials implementing the
Credential.
Credentials from TYPO3_CONF_VARS
Credentials are read from $GLOBALS['TYPO3_CONF_VARS'], set from
environment variables in config/.
Credentials from the site configuration
Credentials are read from the configuration of the site, for installations with different PayPal apps per site.