【发布时间】:2015-03-26 01:38:17
【问题描述】:
我正在尝试使用以下方法将 PayPal 按钮集成到我的网站中:
How-To: Build your own PayPal Encrypted Buttons
我按照所有说明进行操作,但是当我单击页面上的按钮时,它会转到显示 We were unable to decrypt the certificate id. 的页面
我做错了什么?
【问题讨论】:
标签: php encryption paypal
我正在尝试使用以下方法将 PayPal 按钮集成到我的网站中:
How-To: Build your own PayPal Encrypted Buttons
我按照所有说明进行操作,但是当我单击页面上的按钮时,它会转到显示 We were unable to decrypt the certificate id. 的页面
我做错了什么?
【问题讨论】:
标签: php encryption paypal
首先 - 你必须去看看:
http://blog.scrobbld.com/paypal/protecting-your-payments-with-ewp/
那么你需要:
http://www.flatmtn.com/article/setting-openssl-create-certificates
完成以上所有设置后,您需要前往 PayPal 并登录。点击“使用经典界面”按钮,因为它更易于使用。一旦您在您的主要 PayPal 位置,请确保单击最左侧的选项卡并处于活动状态。在选项卡下,您将看到“个人资料”链接。将鼠标悬停在它上面(或者您可能需要左键单击它)。您应该会看到一个下拉菜单。在底部显示“我的销售工具”。点击它。在右侧,您应该会看到“API 访问”和一个链接。如果需要,请单击它来设置您的 API 设置。在“我的销售工具”网页的最底部是“加密支付设置”链接。点击它。如果您在底部没有看到证书 - 那么您需要制作一个。证书 ID 将在左侧。您需要将其放入对 setCertificateID() 函数的调用中。来自 PayPalEWP 类。
请务必阅读第一个网站上的所有 cmets。它们很重要!
我希望这会有所帮助。 :-)
【讨论】:
如果您尝试解决此错误““我们无法解密...”,那么您可以通过这种方式解决 我认为您无法正确配置沙箱 单击here 创建添加到购物车按钮,然后 创建按钮后,然后在您的项目中显示一些脚本复制粘贴
例如
<form target="paypal" action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post" >
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="business" value="Your email here all notification send on this email">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="item_name" value="webTest">
<input type="hidden" name="amount" value="12.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="tax_rate" value="2.000">
<input type="hidden" name="shipping" value="3.00">
<input type="hidden" name="add" value="1">
<input type="hidden" name="bn" value="PP-ShopCartBF:btn_cart_LG.gif:NonHostedGuest">
<input type="image" src="https://www.sandbox.paypal.com/en_US/i/btn/btn_cart_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.sandbox.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
【讨论】: