Payment Setup
The webshop supports multiple payment methods. Configure them by adding the appropriate environment variables to your .env file or docker-compose.yaml.
Sandbox Mode
Section titled “Sandbox Mode”By default, all payment gateways run in test/sandbox mode for safety. Set the following to false when you are ready to accept real payments:
OMNIPAY_TEST_MODE=truePayPal
Section titled “PayPal”- Create a PayPal Developer account.
- Create a REST API app to obtain your credentials.
- Add the following to your
.env:
PAYPAL_CLIENT_ID=your-client-idPAYPAL_SECRET=your-secret- Restart Lychee (or your Docker container).
Mollie
Section titled “Mollie”- Create a Mollie account.
- Retrieve your API key and profile ID from the Mollie dashboard.
- Add the following to your
.env:
MOLLIE_API_KEY=your-api-keyMOLLIE_PROFILE_ID=your-profile-id- Restart Lychee.
Offline Payments
Section titled “Offline Payments”Offline payments are available without any additional configuration. When a visitor checks out with the offline option, the order is created with a pending status. You then:
- Collect payment through your own means (bank transfer, cash, etc.).
- Open the order in the admin panel.
- Click Mark as paid to confirm the payment and trigger fulfillment.
