Hej,
Jag håller på att implementera Paynovas betallösning på en sajt, som är skriven i vbScript.
Nu har jag suttit halva dagen och läst deras tekniska bibel och har kommit en liten bit på vägen.
Det går till som så att man gör ett SOAP anrop till en webservice, till vilken man skickar med ett gäng uppgifter, såsom merchant_id, order_id, valuta, betalsätt osv.
Nu har jag kört fast lite, för jag får inte igenom det här anropet, istället får jag:
Status: 500
Statustext: Internal Server Error
Response: Request format is invalid: .
Jag har försökt hitta exempel på hur man ska formatera det här, men det verkar inte finnas något på deras hemsida och inte heller när jag Googlar.
Såhär har jag gjort:
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>" & escape(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>" & escape(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","text/xml; charset=utf-8"
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
Är det någon som har erfarenthet av det här, eller som vet var jag kan hitta mer info?
Tacksam för all hjälp jag kan få!