日期:2014-05-17  浏览次数:20821 次

遇到个个人没遇到过的问题,求告解~谢谢
1,网页里边,需要支付的情况。
在结算的时候,会弹出支付宝、paypal之类的控件,用来支付。
这样的程序,是调用对方的接口就行了吗?谁有经验?知道该怎样做?

2,用jsp时,想用jsp调用出票的机器。就是结账时,打印收据(单据)的那种小机器。是需要根据机器的驱动来调用?还是怎样?谁做过吗?

谢谢各位。
支付宝 paypal 控件 jsp 收据

------解决方案--------------------
ActivX插件
------解决方案--------------------
1,调用接口时候,也要有环境(插件的环境),接口里面会写出来,对应的参数方法,你可以利用demo测试一下。(如ATL插件,ocx插件之类的,大多都是c++做的)
2,调用打印机,应该是调用它提供的dll文件,dll文件里面就是开放性的接口,你调用传参就可以。具体你可以网上找一下Jnative技术,就是java调用dll的。
其实两个和在一起都是在调用接口啊!直接传参应该就可以,楼主找到之后多测试测试,相信很快就有自己的想法和路子了!
希望对楼主有帮助
------解决方案--------------------
1.服务器走WEBSERVICE,返回结果处理并使客户浏览器跳转到支付页面(当然这里会带之前处理过的部分参数,具体是什么需要接口方约定)

2. 直接使用浏览器的打印功能, 根据票据样式调整好对应位置(需要多次调整HTML)
------解决方案--------------------
你下载一个支付宝的说明文档,要自己写。给参数的。我前段时间项目刚做了这个功能。
------解决方案--------------------
第二个问题的话,下边是我的一个例子。




<script type="text/javascript" src="/mshopsuhf/js/common.js"> </script>
<script type="text/javascript" src="/mshopsuhf/js/checkform.js"> </script>  
<link href="/mshopsuhf/css/main.css" rel="stylesheet" type="text/css">
<script type="text/javascript">
<!--
function BusyWaitMsg(msg,w,h)
{
if (!msg)  msg="正在执行中,请稍候...";
if (!w) w=document.body.offsetWidth;
if (!h) h=Math.round(screen.height-180);
//var l=(document.body.offsetWidth-w)/2;
//var t=(document.body.offsetHeight-h)/2;
var l=10;
var t=10;
document.all.BusyDiv_F.style.display="";
window.frames.BusyFrame_F.document.all["MsgText"].innerHTML=msg;
document.all.BusyFrame_F.style.width=w;
document.all.BusyFrame_F.style.height=h;
document.all.BusyFrame_F.style.left=l;
document.all.BusyFrame_F.style.top=t;
document.all.BusyFrame_F.style.right=10;
document.all.BusyFrame_F.style.display="";

}
//打印忙提示的HTML
document.writeln ('<Div id="BusyDiv_F" style="position:absolute; top:0; left:0; width:100%; height:100%; z-index:1010;display:none;border:0px"><table style="width:100%;height:100%;background-color: transparent;"><tr><td></td></tr></table></Div>');
document.writeln ('<iframe allowTransparency="true" id="BusyFrame_F" scrolling="no" frameborder=0 style="border:0px solid #4284F7;position: absolute;z-index:1020; filter :\'progid:DXImageTransform.Microsoft.Shadow(direction=135,color=#AAAAAA,strength=5)\';display: none"></iframe>');
window.frames.BusyFrame_F.document.write('<HTML><BODY onselectstart="return false;" leftmargin=0 topmargin=0 rightmargin=0 bottommargin=0 bgcolor="#F7F7F7" style="background-color=transparent"><table align=center style="height:100%;width:100%;border:1px solid #4284F7" ><tr><td><table style="height:100%;width:100%;font-size:9pt; b