Jump to content

Issue information

  • #004229

  • Unconfirmed


Issue Confirmations

  • Yes (0)No (0)
Photo

http:post in paymentprocessor

Posted by gabbo on 22 June 2013 - 08:54 PM

I can't make paymentprocerrsot NOT to encode the request, bug or? And "version=1" remover from URL (I think) look at log from admin.

$p_url = 'https://paygate.xxx.com/mpi/file.php?version=1';

$p_data = array();
$p_data[] = '<?xml version="1.0" encoding="utf-8"?>';
$p_data[] =   '<envelope>';
$p_data[] =	 '<header>';
$p_data[] =	'<merchantID>removed</merchantID>';
$p_data[] =	'<messageID>' . $_messageid . '</messageID>';
$p_data[] =  '</header>';
$p_data[] =  '<pingRequest>';
$p_data[] =	 '<checksum>' . $_checksum . '</checksum>';
$p_data[] =  '</pingRequest>';
$p_data[] =   '</envelope>';

$_response = Http::post($p_url, $p_data, array(
	'headers' => array(
		'Content-type: text/xml',
	)
));


Requests (http/https request)
URL: https://paygate.xxx.com/mpi/file.php
Request: 'version=1&0=%3C%3Fxml+version%3D%221.0%22+encoding%3D%22utf-8%22%3F%3E&1=%3Cenvelope%3E&2=%3Cheader%3E&3=%3CmerchantID%3E%3C%2FmerchantID%3E&4=%3CmessageID%3E22%3A46%3A21T2013-06-22.434%40192.168.71.223%3C%2FmessageID%3E&5=%3C%2Fheader%3E&6=%3CpingRequest%3E&7=%3Cchecksum%3Ededdcde398cefb9dd5e3749866fc01a46ee08389%3C%2Fchecksum%3E&8=%3C%2FpingRequest%3E&9=%3C%2Fenvelope%3E'
Response: <html> <head> <title>The remote server returned an error: (404) Not Found.</title> <style> body {font-family:"Verdana";font-weight:normal;font-size: .7em;color

Think I found the problem, everything brakes after '?' (questionmark) in URL.

Where can I edit in RC2 so I can continue with my paymentprocessor?


For clarification: It's not possible to use 'https://gateway.com/payment.mpi?ver=1' links in "http::post" funktion.