0
我使用此代码将我的价值传递给贝宝。 现在我的问题是,付款完成后,我应该在我的页面上,以便我可以操纵一些事情,如我应该保存令牌供将来参考等。当我再次回到我的页面时用户隐式点击在页面形成的链接支付宝付款完成。但这里的问题是我不能只依靠用户点击或做。我想它应该是隐含的,没有任何用户干预。 在此先感谢,请一些启发.....付款后返回我的网站的贝宝
<%
String apiusername="USERNAME";
String apipassword="PASSWORD";
String truePath="http://localhost:8080/Befundo/xtraFiles/paypal/paypalResponse.jsp";
String falsePath="http://localhost:8080/PaypalGS/paypalResponseCancel.jsp";
String itemName="Computer Laptop";
String quantity="2";
String amount="100";
%>
<body >
<form name="paypalForm" action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post">
<input type="text" name="cmd" value="_xclick" />
<input type="text" name="business" value="<%=apiusername %>" />
<input type="text" name="password" value="<%=apipassword %>" />
<input type="text" name="custom" value="1123" />
<input type="text" name="item_name" value="<%=itemName%>" />
<input type="text" name="amount" value="<%=amount%>"/>
<input type="hidden" name="quantity" value="<%=quantity %>" />
<input type="text" name="rm" value="1" />
<input type="text" name="return" value="<%=truePath %>" />
<input type="text" name="cancel_return" value="<%=falsePath %>" />
<input type="text" name="cert_id" value="API Singature" />
<input type='submit' value='Pay'>
</form>
</body>
这是可以在沙箱a/c?.... –
,因为我没有得到任何**链接**说你指定的选项 –
是的,Ofcourse .. :-)你可以在沙箱中做到这一点并通过登录到卖家的账户进行配置。 – AlphaMale