Configuring Sandbox and Production Modes
The Sylius PayPal Plugin supports both sandbox (test) and live (production) modes. This allows you to safely test your integration with PayPal before going live with real payments.
Default: Sandbox Mode
By default, the plugin operates in sandbox mode. This means:
All payment requests are sent to PayPal’s sandbox environment.
Test credentials and test buyer accounts are used.
No real money is involved in the transactions.
This is ideal for development and testing purposes.
Switching to Live Mode
To process real transactions in a live environment, you must explicitly disable the sandbox mode in your configuration:
# config/packages/prod/sylius_paypal.yaml
sylius_paypal:
sandbox: false
Last updated
Was this helpful?