WordPress, PayPal IPN fails when CiviCRM Contribution Page shortcode is used on a page which requires login to access eg. Private page.
WordPress, PayPal IPN fails when CiviCRM Contribution Page shortcode is used on a page which requires login to access eg. Private page.
PayPal IPN will attempt to access the Private page, WordPress will redirect to the login page and the IPN fails.
It is expected that the PayPal IPN should succeed by calling a general CiviCRM URL for PayPal rather than the actual CiviCRM Contribution Page. This should not be confused with the return URL PayPal calls in the web browser which then loads the CiviCRM Thank You page.
There can be many valid reasons for having a CiviCRM Contribution Page shortcode used on a Private page, for example: users must be logged in to renew membership, or only logged in users can purchase a "widget".
Agileware Ref: CIVICRM-1668
WordPress 5.6
CiviCRM 5.33.2