Installation
To install this plugin:
- Copy the plugin's uncompressed folder into the script's plugins folder like this:
/extras/plugins/twocheckout/ - Go to your Admin panel → Add-ons (and click on "Install") to install it.
Compatibility
- v3.1.0 => LaraClassifier v15.0.0+ and JobClass v14.0.0+
- v3.0.0 => LaraClassifier (v14.0.0 to v14.2.0) and JobClass (v13.0.0 to v13.2.0)
- v2.9 => LaraClassifier (v11.0.2 to v13.0.0) and JobClass (v10.0.2 to v12.0.0)
- v2.8 => LaraClassifier (v11.0.0 to v11.0.1) and JobClass (v10.0.0 to v10.0.1)
- v2.7 => LaraClassifier (v10.2.0 to v11.0.0) and JobClass (v9.2.0 to v10.0.0)
- v2.6 => LaraClassifier v10.2.0 and JobClass v9.2.0
- v2.5 => LaraClassifier (v10.1.2 to v10.1.4) and JobClass (v9.1.3 to v9.1.5)
- v2.4 => LaraClassifier (v9.0.1 to v10.1.1) and JobClass (v8.0.1 to v9.1.2)
- v2.3 => LaraClassifier (v9.0.0 to v9.0.1) and JobClass (v8.0.0 to v8.0.1)
- v2.2 => LaraClassifier (v8.0.2 to v8.0.6) and JobClass (v7.0.2 to v7.0.6)
- v2.1 => LaraClassifier (v8.0.0 to v8.0.1) and JobClass (v7.0.0 to v7.0.1)
- v2.0 => LaraClassifier (v7.3.3 to v7.3.8) and JobClass (v6.1.3 to v6.1.8)
- v1.8 => LaraClassifier (v7.1.0 to v7.3.2) and JobClass (v5.9.0 to v6.1.2)
- v1.7 => LaraClassifier (v6.6 to v7.0.x) and JobClass (v5.4 to v5.8.x)
- v1.6 => LaraClassifier (v5.7 to v6.5) and JobClass (v4.5 to v5.3)
- v1.5 => LaraClassifier (v5.2 to v5.6) and JobClass (v4.0 to v4.4)
- v1.4 => LaraClassifier v5.1 and JobClass v3.9
- v1.3 => LaraClassifier (v4.9 to v5.0) and JobClass (v3.7 to v3.8)
- v1.1 to v1.2 => LaraClassifier (v3.1 to v4.8) and JobClass (v2.0 to v3.6)
- v1.0 => LaraClassifier v3.0 and JobClass v1.9
Update
Replace all the plugin's files on your server.
Configuration
Add the settings below in the script's /.env file on your server:
TWOCHECKOUT_PUBLISHABLE_KEY=
TWOCHECKOUT_PRIVATE_KEY=
TWOCHECKOUT_SELLER_ID=
TWOCHECKOUT_SECRET_WORD=
TWOCHECKOUT_DEMO=false
Example of use:
TWOCHECKOUT_PUBLISHABLE_KEY=your-2checkout-publishable-key
TWOCHECKOUT_PRIVATE_KEY=your-2checkout-private-key
TWOCHECKOUT_SELLER_ID=your-2checkout-seller-id
TWOCHECKOUT_SECRET_WORD=your-2checkout-secret-word
TWOCHECKOUT_DEMO=true
NOTE:
- Integration modes supported:
redirectandauthorize. - To select an integration mode use the variable
TWOCHECKOUT_INTEGRATION=in the/.envfile like this:TWOCHECKOUT_INTEGRATION=authorize. - Without adding the
TWOCHECKOUT_INTEGRATION=variable in the/.env, the default integration isredirect. - To place a test order with 2Checkout's legacy Payment API, add the demo variable
TWOCHECKOUT_DEMO=with a value oftrue. Important: In the latest version of the 2checkout.com API, demo mode needs to be set on the seller dashboard.
Translation
To translate this plugin into your language:
- Go to the languages folder at
/extras/plugins/twocheckout/lang/ - Duplicate the folder
/extras/plugins/twocheckout/lang/en/to/extras/plugins/twocheckout/lang/<code>/NOTE: Replace<code>by your language code (e.g. "de" for German language). - Open the file
/extras/plugins/twocheckout/lang/<code>/messages.phpand translate it. NOTE: To translate the file, change the values and not the keys of PHP array.
Uninstallation
To uninstall this plugin, go to your Admin panel → Add-ons (and click on "Uninstall") to uninstall it.
Removing
To remove this plugin:
- Uninstall it
- Go in the folder
/extras/plugins/and remove the foldertwocheckout/.