Add content type to forwarded IPN data.

Issue #73 closed
Drew Angell repo owner created an issue

I think this goes here instead of in the IPN Forwarder code, but I'm not 100% sure.

We have a user reporting that their 3rd party IPN handlers (that they are forwarding to) are not picking up any data. The developers of the 3rd party handlers are saying that is because we are not sending a content type header with the forwarded IPN POST.

It turns out that the two products that we were IPN forwarding to would only work if the header content-type is set to application/x-www-form-urlencoded

From what I can tell it looks like we need to add this header to the wp_remote_post() call within the paypal_ipn_for_wordpress_ipn_forwarding_remote_post() method inside /includes/class-paypal-ipn-for-wordpress-paypal-ipn-forwarder.php

Comments (4)

  1. Log in to comment