首页 > 解决方案 > 动态自定义值贝宝按钮

问题描述

是否可以在贝宝按钮中发送加密和解密输入的组合?

样本

                                <form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post" target="_top">
                                    <input type="hidden" name="cmd" value="_s-xclick">
                                    <input type="hidden" name="first_name" value="" id="ctm_first_name">
                                    <input type="hidden" name="last_name" value="" id="ctm_last_name">
                                    <input type="hidden" name="address1" value="" id="ctm_address_street">
                                    <input type="hidden" name="address2" value="" id="ctm_address_street_two">
                                    <input type="hidden" name="city" value="" id="ctm_address_city">
                                    <input type="hidden" name="state" value="" id="ctm_address_state">
                                    <input type="hidden" name="zip" value="" id="ctm_address_zip">
                                    <input type="hidden" name="email" value="" id="ctm_payer_email">
                                    <input type="hidden" name="custom" value="" id="ctm_val">
                                    <input type="hidden" name="encrypted" value="-----BEGIN PKCS7

-----结束PKCS7----->

我有一个动态数据,我正在使用 javascript 填充。我担心如果它加密我无法调用输入名称或 id ..所以我的 javascript 填充代码将不起作用

那么我可以同时传递输入解密和加密吗?

标签: paypal

解决方案


不,您需要确定按钮类型:托管/加密,然后仅使用一种类型的按钮。

您也可以使用纯文本按钮,但托管按钮效果最好。

纯文本示例

https://developer.paypal.com/docs/classic/paypal-payments-standard/integration-guide/html_example_buy_now/


推荐阅读