## DOCUMENTATION

PayPal (v2.2.4) addon for LaraClassifier and JobClass.

### Installation

To install this addon:

- Copy the addon's (uncompressed) folder into the script's addons folder like this: `/extras/addons/paypal/`
- Go to your Admin panel → Addons (and click on "Install") to install it.

### Compatibility

- v2.2.4 => LaraClassifier (Latest Version) and JobClass (Latest Version)

### Update

Replace all the addon's files on your server.

### Configuration

##### Setting up credentials

- Get client ID and client secret by going to: https://developer .paypal.com/developer/applications and generating a REST API app. Get Client ID and Secret from there.
- Copy and paste the API's client-id, and client-secret into the /.env file like this:

    PAYPAL_MODE=your-paypal-mode
    PAYPAL_CLIENT_ID=your-paypal-client-id
    PAYPAL_CLIENT_SECRET=your-paypal-client-secret

### Translation

To translate this addon into your language:

- Go to the languages folder at `/extras/addons/paypal/lang/`
- Duplicate the folder `/extras/addons/paypal/lang/en/` to `/extras/addons/paypal/lang/<code>/`
  NOTE: Don't forget replace `<code>` by your language code (e.g. "de" for German language).
- Open the file `/extras/addons/paypal/lang/<code>/messages.php` and translate it.
  NOTE: To translate the file, you must change the values and not the keys of the PHP array.

### Uninstallation

To uninstall this addon, go to your Admin panel → Addons (and click on "Uninstall") to uninstall it.

### Removing

To remove this addon:

- Uninstall it
- Go in the folder `/extras/addons/` and remove the folder `paypal/`.