paypal - 动态自定义值贝宝按钮
问题描述
是否可以在贝宝按钮中发送加密和解密输入的组合?
样本
<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 填充代码将不起作用
那么我可以同时传递输入解密和加密吗?
解决方案
不,您需要确定按钮类型:托管/加密,然后仅使用一种类型的按钮。
您也可以使用纯文本按钮,但托管按钮效果最好。
纯文本示例
推荐阅读
- android - 我无法解码这个 Base64 字符串
- java - java中的哪个ORM用于并行处理?
- python - 是否可以以多处理方式在许多训练集上训练 keras 模型?
- raspberry-pi - 通过 VirtualBox 在 RaspianOS (Debian64) 上的 webgl 的速度/性能是否与实际的 RaspberryPi 相同?
- android - 如果没有 ViewModel,MediatorLiveData 将无法工作
- python - 我只想按“小时:分钟”显示时间。"d = datetime.strptime("10:30", "%H:%M")" 不起作用
- java - TextInputLayout 提示消失
- c# - 如何使用 Ajax 方法下载 excel 文件 - 这里我的文件下载在 Temp 文件夹中,而不是在浏览器中下载?
- python - 无法使用 django 中的用户模型登录到我的网站
- arrays - Excel:解决数组之间差异的标准偏差(多列的平均值)