您提供的链接未显示404未找到错误。它转到贝宝的启动画面页面。从那里用户可以登录。该URL重定向到https://www.paypal.com/home。看起来你有一个不再工作的功能。我以前没有见过,但确实有一个可能的解决方案。
如果您想为用户提供在您的网站上使用paypal进行购买的方式,通常(并非难)的方法是用贝宝代码(例如您在贝宝网站上创建的代码)(在“设置“您可以创建一个按钮并将代码粘贴到您的网站中)或手动创建一个带有输入字段的HTML表单。
您发送的数据将在输入字段中显示在Form $ _GET操作中,并显示在url中的paypal中。贝宝不会谈论如何处理数据。也许无论是否允许它非正式地工作,不再是这样。
有很多关于如何在SO上创建贝宝按钮html代码的示例。我可以张贴一些,如果你想。这个网站告诉你的URL数据可以与创建输入字段:https://developer.paypal.com/docs/classic/paypal-payments-standard/integration-guide/Appx_websitestandard_htmlvariables/
下面是一个例子:
<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post" >
<input type="hidden" name="cmd" value="_cart"> <!-- I'm using cart, you want to stick the buy now option value in here. -->
<input type="hidden" name="business" value="yoru business signon email">
<input type="hidden" name="lc" value="EUR">
<input type="hidden" name="item_name" value="Whats bought">
<input type="hidden" name="amount" value="15.00">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="button_subtype" value="products">
<input type="hidden" name="no_note" value="0">
<input type="hidden" name="cn" value="Add special instructions to the seller:">
<input type="hidden" name="no_shipping" value="2">
<input type="hidden" name="rm" value="1">
<input type="hidden" name="shopping_url" value="http://www.yours.com/OnlinePayButtons.php">
<input type="hidden" name="add" value="1">
<input type="hidden" name="bn" value="PP-ShopCartBF:btn_cart_SM.gif:NonHosted">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_cart_SM.gif" border="0" name="submit">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height=".8">
</form>
你必须挑选出到html变量的联系,有什么输入你在表单需要。这给出了它看起来像的结构和想法。
这是一个不同的问题。我从来没有见过有人使用url成功发送数据,而不是让Form表单动作创建url并以这种方式发送数据。 – curls
该格式在2006年的综合指南(网站付款 标准结账集成指南)中进行了描述。以下是一段代码:http://pastebin.com/iwy7DCTR – CpnCrunch