woocommerce-gateway-payfast
woocommerce-gateway-payfast copied to clipboard
PayFast ITN breaking after Cloudflare is activated
Describe the Bug
We have an issue with our site with PayFast ITN breaking when Cloudflare is active.
Customers place their order, and orders get stuck in a Pending Payment state.
To Reproduce
- Activate Cloudflare on a site
- Complete a payment on PayFast
- Your order status will change to Pending Payment
- The order will never move to Pending
- An excerpt from our PayFast logs via WooCommerce > Status:
04-03-2023 @ 05:43:20 - Verify security signature 04-03-2023 @ 05:43:20 - Signature = valid 04-03-2023 @ 05:43:20 - Verify source IP 04-03-2023 @ 05:43:20 - Valid IPs: Array ( [0] => 34.107.176.71 [1] => 34.120.184.229 [2] => 41.74.179.195 [3] => 41.74.179.200 [4] => 41.74.179.211 [5] => 41.74.179.196 [6] => 144.126.193.139 [7] => 41.74.179.212 [8] => 41.74.179.193 [9] => 41.74.179.197 [10] => 41.74.179.201 [11] => 41.74.179.204 [12] => 41.74.179.203 [13] => 197.97.145.156 [14] => 41.74.179.210 [15] => 41.74.179.217 [16] => 41.74.179.218 [17] => 41.74.179.194 [18] => 197.97.145.150 [19] => 197.97.145.149 [20] => 197.97.145.145 )
Expected Behavior
ITN should pass and orders should move to Pending state.
Actual Behavior
ITN does not pass and orders are set to Pending Payment state.
Environment
WooCommerce version: 7.5.1 WooCommerce REST API package: 7.5.1 WooCommerce Blocks package: 9.6.6 Action Scheduler package: 3.5.4 WordPress version: 6.1.1