FAQ |
Kalender |
|
![]() |
#1 | ||
|
|||
Nykomling
|
Go'kväll,
Jag håller på med en Paynova implementering på en sajt som är skriven i ASP. Har läst Paynovas tekniska "bibel" många gånger om nu, men är inte med i matchen. Jag får "500 - Internal Error - Missing parameter: merchant_id." Såhär har jag gjort: Kod:
<% send_data = "<?xml version=""1.0"" encoding=""utf-8""?>" &_ "<soap:Envelope xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xmlns:xsd=""http://www.w3.org/2001/XMLSchema"" xmlns:soap=""http://schemas.xmlsoap.org/soap/envelope/"">" &_ "<soap:Body>" &_ "<PaymentSession>" &_ "<merchant_id>" & merchant_id & "</merchant_id>" &_ "<merchant_channel>" & escape(merchant_channel) & "</merchant_channel>" &_ "<merchant_orderid>" & escape(merchant_orderid) & "</merchant_orderid>" &_ "<merchant_notify_page>" & escape(merchant_notify_page) & "</merchant_notify_page>" &_ "<merchant_redirect_url_ok>" & escape(merchant_redirect_url_ok) & "</merchant_redirect_url_ok>" &_ "<merchant_redirect_url_cancel>" & escape(merchant_redirect_url_cancel) & "</merchant_redirect_url_cancel>" &_ "<customer_email>" & escape(customer_email) & "</customer_email>" &_ "<customer_firstname>" & escape(customer_firstname) & "</customer_firstname>" &_ "<customer_lastname>" & escape(customer_lastname) & "</customer_lastname>" &_ "<customer_address1>" & escape(customer_address1) & "</customer_address1>" &_ "<customer_zip>" & escape(customer_zip) & "</customer_zip>" &_ "<customer_city>" & escape(customer_city) & "</customer_city>" &_ "<customer_country>" & escape(customer_country) & "</customer_country>" &_ "<customer_language>" & escape(customer_language) & "</customer_language>" &_ "<pay_method>" & escape(pay_method) & "</pay_method>" &_ "<pay_cents>" & escape(pay_cents) & "</pay_cents>" &_ "<pay_currency>" & escape(pay_currency) & "</pay_currency>" &_ "<pay_contracttext>" & escape(pay_contracttext) & "</pay_contracttext>" &_ "<checksum>" & checksum & "</checksum>" &_ "</PaymentSession>" &_ "</soap:Body>" &_ "</soap:Envelope>" post_url = "https://testpaygate.paynova.com/ws/paynova3/request.asmx/CreateSession" %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>Paynova Test</title> <meta name="generator" content="editplus"> <meta name="author" content=""> <meta name="keywords" content=""> <meta name="description" content=""> <style type="text/css"> * { margin: 0; padding: 0; font: 12px calibri, arial; color: #222; } html, body { margin: 20px; background-color: #eee; </style> </head> <body> <% Set xmlhttp = server.Createobject("MSXML2.ServerXMLHTTP.3.0") xmlhttp.Open "POST",post_url,false xmlhttp.setRequestHeader "Content-Type","application/x-www-form-urlencoded" xmlhttp.send(send_data) Set oXML = Server.CreateObject("Microsoft.XMLDOM") oXML.Async=False oXML.loadXML(xmlhttp.responseText) Response.Write( "Status: " & xmlhttp.status & "<br />" &_ "Statustext: " & xmlhttp.statustext & "<br />" &_ "Response: " & xmlhttp.responseText & "<br />") Set oXML = Nothing Set xmlhttp = Nothing Response.End Har sökt en del på Google och hittat ett gäng sidor, bland annat här, där flera verkar ha haft liknande problem, bland annat med dokumentationen från Paynova som inte säger jätte mycket. Det Merchant ID jag angett i koden ovan, är det som kallas för "icpaccountid", det är ett tal på 6 siffror, i manualen står det att denna post ska ha 20 tecken, eller är det MAX antalet tecken som det kan innehålla? Tacksam för all hjälp jag kan få med det här! |
||
![]() |
![]() |
Svara |
|
|