首页 文章

加密paypal立即购买按钮html表单

提问于
浏览
2

我在html中有一个经典的paypal buynow按钮形式 . 我需要加密表单以隐藏金额或卖家电子邮件数据等参数...

<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="+++++++++">
<input type="hidden" name="lc" value="IT">
<input type="hidden" name="on0" value="DESCRIPTION">
<input type="hidden" name="os0" value="PAYMENT OBJECT n.<?php echo $_SESSION["ordernumber"]; ?>">
<input type="hidden" name="item_name" value="PAYMENT ORDER n. <?php echo $_SESSION["ordernumber"]; ?>">
<input type="hidden" name="item_number" value="VSTCB">
<input type="hidden" name="button_subtype" value="services">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="no_shipping" value="2">
<input type="hidden" name="amount" value="<?php echo $topaypal; ?>">
<input type="hidden" name="rm" value="1">
<input type="hidden" name="return" value="www.++++++.com/ok.php">
<input type="hidden" name="currency_code" value="EUR">
<input type="hidden" name="bn" value="PP-BuyNowBF:btn_buynowCC_LG.gif:NonHosted">
<input type="image" src="https://www.paypalobjects.com/it_IT/IT/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal è il metodo rapido e sicuro per pagare e farsi pagare online.">
<img alt="" border="0" src="https://www.paypalobjects.com/it_IT/i/scr/pixel.gif" width="1" height="1">
</form>

我用openssl生成了我的私钥和公共证书,我还有paypal的cert_Id和相对的paypal_public_certificate,但是我根本无法加密我的html表单,我只发现了这个命令行paypal网站:

PPEncrypt CertFile PrivKeyFile PPCertFile InputFile OutputFile

这些信息的参考页面位于paypal网站上的地址:https://developer.paypal.com/docs/classic/paypal-payments-standard/integration-guide/encryptedwebpayments/

但我不知道如何使用它...

有没有人知道如何使用paypal提供的命令行加密表单,如果可能的话,这是一种一步一步的指南?

很多问候帮助我

1 回答

  • 0

    命令行“ PPEncrypt CertFile PrivKeyFile PPCertFile InputFile OutputFile ”分解为以下组件:

    • PPEncrypt - PayPal的加密算法

    • CertFile - 您自己的公共证书的路径名

    • PKCS12File - 您自己的公共证书的PKCS12格式的路径名

    • PPCertFile - PayPal公共证书副本的路径名

    • Password - 您自己的公共证书的PKCS12格式的密码

    • InputFile - 包含未加密的网站付款HTML表单变量的文件的路径名

    • OutputFile - 加密输出的文件名[Sandbox]可选的单词Sandbox,可让您测试使用加密网站付款保护的PayPal沙箱中的付款按钮

    但是,您可能希望选择button hosted by PayPal,因为托管意味着每次更新表单参数时都不必重新生成证书 .

    希望这可以帮助! :)

相关问题