You are browsing upcoming documentation for version 6.1 of OroCommerce, scheduled for release in 2025. Read the documentation for version 6.0 (the latest LTS version) to get up-to-date information.

See our Release Process documentation for more information on the currently supported and upcoming releases.


OroPayPalBundle adds PayPal integration to the OroCommerce application. For the OroCommerce back-office administrator, the bundle provides the ability to enable and configure PayPal payment methods for customer orders. Once PayPal payment methods are enabled, customer users can pay for orders using their existing PayPal account or credit and debit cards.

Testing PayPal Response 

The process of purchasing through PayPal Payments Pro or Payflow Gateway includes listening to a notify response from PayPal servers. To make payments more secure, we have implemented the IP address filtering which only accepts responses from the PayPal server addresses` white list. The white list itself is stored in the PayflowIPCheckListener class by default.

For this IP check to work, the bundle has to be able to resolve the IP address from the request that is coming from a PayPal server. This is usually the case in the production environment when you have your server exposed to the internet.

To test the payments on the developer machine, you can use some kind of tunneling service, for example Ngrok. However, there can be some issues with the tunneling services. They tend to put the original request IP address in the header (e.g., X-Forwarded-For), and Symfony doesn’t resolve this address as client IP by default.

Luckily, there is a way for Symfony to do that by enabling trusted proxies. For the detailed explanation, refer to How to Configure Symfony to Work behind a Load Balancer or a Reverse Proxy.

IP Address Whitelist Settings 

To change whitelist of IP addresses, define it in the oro_paypal section with the allowed_ips property:

2   allowed_ips:
3      -
4      -
5      -
6      -
7      - 2001:db8::85a3:0:8a2e:370:7334,
8      - 2001:db8::85a3:0:8a2e:370:7334/64