I have two issues when paying an invoice via PayPal (Sandbox, test mode):
- When the invoice is paid on PayPal and I'm redirected to my homepage, I'm redirected back to the invoice I already paid instead to a custom payment completed page I specified in my PayPal account
- the invoice itself is not marked as paid (€0 of €xxx total collected)
Any idea what could be wrong, what else can I check?
My WP-Invoice PayPal settings
PayPal username -> a test developer business account
Use in test Mode -> "YES"
Send IPN URL with payment request? -> "NO"
If I try visiting the IPN admin-ajax URL I get a "Direct access not allowed" message. If I deactivate WP-Inovice I get returned a "0".
My History->IPN history shows, that notifications went out to the right Notification URL, HTTP response code is 200, delivery status is marked as "Sent"
PayPal Sandbox account settings
My profile->My selling tools->Website Payment Preferences
-Auto Return is set to "ON"
-Return URL is a valid, publicly accessible page
-Payment Data Transfer is "OFF"
My profile->My selling tools->Instant Payment Notification (IPN)
-Notification URL (copied from wp invoice PayPal IPN URL)
-Message delivery "Enabled"
WordPress 4.2.2, WP-Invoice version 3.09.6