Toni
9th March 2008, 22:38
Can anyone please point me in the right direction on how to fix my issue with this HSBC XML API please? Basically when try to complete a transaction I get the following errors:
In I.E putting osCOmmerce debug mode on, I get:
The XML page cannot be displayed
Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
--------------------------------------------------------------------------------
Invalid at the top level of the document. Error processing resource 'https://www.mydomain.com/catalog/hsbc_api_process...
Array
^
Using a Curl Test Script I get:
Array
(
[url] => https://www.secure-epayments.apixml.hsbc.com/
[content_type] => text/xml
[http_code] => 200
[header_size] => 106
[request_size] => 93
[filetime] => -1
[ssl_verify_result] => 0
[redirect_count] => 0
[total_time] => 0.528268
[namelookup_time] => 0.317458
[connect_time] => 0.347301
[pretransfer_time] => 0.495673
[size_upload] => 0
[size_download] => 835
[speed_download] => 1580
[speed_upload] => 0
[download_content_length] => 835
[upload_content_length] => 0
[starttransfer_time] => 0.52688
[redirect_time] => 0
)
Errors: 0
HTTP/1.1 200 OK Server: CCE_XMLIC/1.0 Connection: close Content-Type: text/xml Content-Length: 835 6 16 Merchant CcxXmlInput.A CcxXmlInput 1 793 CcxXmlInstance.cpp 20:00:41Nov 6 2006 8 6 The HTTP method received is not valid. Only POST is accepted. EOF
In FireFox I get:
Array ( [0] => [1] => [2] => 1.0 [3] => [4] => OrderFormDoc [5] => [6] => USERNAME [7] => PASSWORD [8] => 364 [9] => [10] => [11] => Payment [12] => [13] => [14] => Y [15] => [16] => ..............@msn.com [17] => [18] => [19] => ewrr [20] => ..........@msn.com [21] =>
[22] => erw ewr [23] => EREWdewqDE [24] => R [25] => rewe [26] => wre [27] => reEWQE [28] => 12 [29] =>
[30] => [31] => [32] => [33] => [34] => 1 [35] => 345 [36] => 02/16 [37] => 4444333322221111 [38] => 1 [39] => [40] => [41] => [42] => [43] => Auth [44] => my domain : Online Wines, Champagnes, Sparkling, Port, Sherry, Madeira | Spirits & Liqueurs [45] => [46] => [47] => 650 [48] => [49] => [50] => [51] => [52] => [53] => ) 1.0 OrderFormDoc 47d231ff-de86-3003-002b-0003bac62f71 Payment 6 16 Merchant Director Director 3 876 CcxInput.cpp 19:43:05Nov 6 2006 7 6 Insufficient permissions to perform requested operation.
rewe 12 erw ewr reEWQE wre EREWdewqDE R
............@msn.com ewrr .........@msn.com 1 345 02/16 4444333322221111 1 Y Auth 364 USERNAME PASSWORD 1205088161073 1205088161088
ID =
MAXSEV = 6
ACTION =
CCRETURNMSG =
FRAUDRESULT =
CCERRCODE =
ORDERID =
TRANSACTIONID =
TRANSACTIONSTATUS =
AUTHCODE =
Warning: Cannot modify header information - headers already sent by (output started at ....../public_html/catalog/hsbc_api_process.php:224) in ............./public_html/catalog/includes/functions/general.php on line 33
Any suggestion would be of great help.
Thanks
In I.E putting osCOmmerce debug mode on, I get:
The XML page cannot be displayed
Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
--------------------------------------------------------------------------------
Invalid at the top level of the document. Error processing resource 'https://www.mydomain.com/catalog/hsbc_api_process...
Array
^
Using a Curl Test Script I get:
Array
(
[url] => https://www.secure-epayments.apixml.hsbc.com/
[content_type] => text/xml
[http_code] => 200
[header_size] => 106
[request_size] => 93
[filetime] => -1
[ssl_verify_result] => 0
[redirect_count] => 0
[total_time] => 0.528268
[namelookup_time] => 0.317458
[connect_time] => 0.347301
[pretransfer_time] => 0.495673
[size_upload] => 0
[size_download] => 835
[speed_download] => 1580
[speed_upload] => 0
[download_content_length] => 835
[upload_content_length] => 0
[starttransfer_time] => 0.52688
[redirect_time] => 0
)
Errors: 0
HTTP/1.1 200 OK Server: CCE_XMLIC/1.0 Connection: close Content-Type: text/xml Content-Length: 835 6 16 Merchant CcxXmlInput.A CcxXmlInput 1 793 CcxXmlInstance.cpp 20:00:41Nov 6 2006 8 6 The HTTP method received is not valid. Only POST is accepted. EOF
In FireFox I get:
Array ( [0] => [1] => [2] => 1.0 [3] => [4] => OrderFormDoc [5] => [6] => USERNAME [7] => PASSWORD [8] => 364 [9] => [10] => [11] => Payment [12] => [13] => [14] => Y [15] => [16] => ..............@msn.com [17] => [18] => [19] => ewrr [20] => ..........@msn.com [21] =>
[22] => erw ewr [23] => EREWdewqDE [24] => R [25] => rewe [26] => wre [27] => reEWQE [28] => 12 [29] =>
[30] => [31] => [32] => [33] => [34] => 1 [35] => 345 [36] => 02/16 [37] => 4444333322221111 [38] => 1 [39] => [40] => [41] => [42] => [43] => Auth [44] => my domain : Online Wines, Champagnes, Sparkling, Port, Sherry, Madeira | Spirits & Liqueurs [45] => [46] => [47] => 650 [48] => [49] => [50] => [51] => [52] => [53] => ) 1.0 OrderFormDoc 47d231ff-de86-3003-002b-0003bac62f71 Payment 6 16 Merchant Director Director 3 876 CcxInput.cpp 19:43:05Nov 6 2006 7 6 Insufficient permissions to perform requested operation.
rewe 12 erw ewr reEWQE wre EREWdewqDE R
............@msn.com ewrr .........@msn.com 1 345 02/16 4444333322221111 1 Y Auth 364 USERNAME PASSWORD 1205088161073 1205088161088
ID =
MAXSEV = 6
ACTION =
CCRETURNMSG =
FRAUDRESULT =
CCERRCODE =
ORDERID =
TRANSACTIONID =
TRANSACTIONSTATUS =
AUTHCODE =
Warning: Cannot modify header information - headers already sent by (output started at ....../public_html/catalog/hsbc_api_process.php:224) in ............./public_html/catalog/includes/functions/general.php on line 33
Any suggestion would be of great help.
Thanks