I have added a new payment processor 'stripe' to my vbulletin forum, and when the callback is sent to vbulletin payment_gateway.php, its blocked by $_SERVER['REQUEST_METHOD']) == 'POST' and $_SERVER['CONTENT_LENGTH'] > 0, inside /core/init.php. The method used by stripe is sending the response back in a json encoded array and has to be received with $response = json_decode(file_get_contents('php://input'), true );
I guess my question is why is a request method of post blocked with any content size and how is the best way to work around this. I could write a new callback page and convert it all to POST array before its sent to vbulletin payment_gateway.php. but I would rather not create files that's not needed and also is there a security reason for this to be blocked within vbulletin?
Thanks.
I guess my question is why is a request method of post blocked with any content size and how is the best way to work around this. I could write a new callback page and convert it all to POST array before its sent to vbulletin payment_gateway.php. but I would rather not create files that's not needed and also is there a security reason for this to be blocked within vbulletin?
Thanks.
Comment