salman1karim Posted February 3, 2007 Posted February 3, 2007 Hi Friends, Now i face problem in Payment Module. In Kuwait country we use the K-net Option, and they dont directly support PHP for payment but support JSP and they send me the Javascript toolkit.I am not professional in Javascript and i dont know how to connect my php module with javascript.Anybody have idea or give me advice. Thanks in Advance Salman IT Engineer
Velveeta Posted February 3, 2007 Posted February 3, 2007 Hi Friends,Now i face problem in Payment Module. In Kuwait country we use the K-net Option, and they dont directly support PHP for payment but support JSP and they send me the Javascript toolkit.I am not professional in Javascript and i dont know how to connect my php module with javascript.Anybody have idea or give me advice. Thanks in Advance The language shouldn't make a difference in the end, as the transmission to their gateway is ultimately going to be made in html most likely, meaning you could use php, asp/asp.net, jsp, perl, or anything to generate the html that's going to be made to their server for confirmation... If you read through that jsp kit, see if you can find a place where it's formulating the page output and establishing a link to their server... Look at the format that it's using, whether it's putting together an XML feed to send over there, or whether it's sending it as post variables, or whatever, and that can be duplicated in php... But as far as I know, unless the server your site is running on is set up to process jsp, you won't be able to use that kit they sent you... You could maybe try asking them for some API documentation... Richard. Richard Lindsey
hrhajiali Posted August 13, 2009 Posted August 13, 2009 Hi Friends,Now i face problem in Payment Module. In Kuwait country we use the K-net Option, and they dont directly support PHP for payment but support JSP and they send me the Javascript toolkit.I am not professional in Javascript and i dont know how to connect my php module with javascript.Anybody have idea or give me advice. Thanks in Advance dear Salman, am i kuwait too , did you succeed to add the Knet in to your web site ? am interested to know the step to do it please . thanks . hamid
MrPhil Posted August 13, 2009 Posted August 13, 2009 Just a clarification here: JSP is not Javascript. It is Java Server Pages -- essentially, the scripting language for the application is Java (not Javascript) rather than PHP. Are you absolutely sure it's JSP and not just Javascript? I wouldn't think that a payment toolkit would be in Javascript, but stranger things have happened. I have no idea if you can mix PHP and JSP on a site, or even within a single application (osC). The server has to be set up somewhat differently for the two languages -- ask your host if it's possible. Then the fun part is getting PHP to talk to JSP and vice-versa. If they can send data via normal GET and POST methods, you might be able to do it.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.