Content-Type Error With Hooks
-
I’m trying to run a function after a successful charge, but I’m running into an error.
The function will run, but there is no notification of a successful transaction on the form. I’ve reviewed the response, and it appears that WordPress automatically converts the header back to HTML instead of json.
At first I was trying to figure out what was wrong with my code, when I tred a blank function and got the same result.
What the request header is outputting with a blank function hooking into wp_stripe_post_successful_charge:
Access-Control-Allow-Credentials:true
Access-Control-Allow-Origin:http://******.sethalling.com
Cache-Control:no-cache, must-revalidate, max-age=0
Connection:Keep-Alive
Content-Encoding:gzip
Content-Length:329
Content-Type:text/html; charset=UTF-8
Date:Fri, 08 Mar 2013 05:44:15 GMT
Expires:Wed, 11 Jan 1984 05:00:00 GMT
Keep-Alive:timeout=3, max=100
Pragma:no-cache
Server:Apache
Vary:User-Agent,Accept-Encoding
X-Content-Type-Options:nosniff
X-Frame-Options:SAMEORIGIN
X-Powered-By:PHP/5.3.20
X-Robots-Tag:noindexWhat the request header outputs with no hooks:
Access-Control-Allow-Credentials:true
Access-Control-Allow-Origin:http://******.sethalling.com
Cache-Control:no-cache, must-revalidate, max-age=0
Connection:Keep-Alive
Content-Length:147
Content-Type:application/json
Date:Fri, 08 Mar 2013 05:45:39 GMT
Expires:Wed, 11 Jan 1984 05:00:00 GMT
Keep-Alive:timeout=3, max=100
Pragma:no-cache
Server:Apache
Vary:User-Agent
X-Content-Type-Options:nosniff
X-Frame-Options:SAMEORIGIN
X-Powered-By:PHP/5.3.20
X-Robots-Tag:noindexAny help would be appreciated. Thanks!
The topic ‘Content-Type Error With Hooks’ is closed to new replies.