button - Paypal 自定义数据

标签 button paypal

在使用简单的按钮进行付款时,是否可以将自定义数据发送到 Paypal?

<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post">
    <input type="hidden" name="cmd" value="_s-xclick">
    <input type="hidden" name="hosted_button_id" value="D9DRKKKXPX5VL">
    <input type="image" src="https://www.sandbox.paypal.com/en_US/i/btn/btn_subscribeCC_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>

我希望在此表单中有一个字段,我可以在其中设置一个值并使用 IPN 将其取回。这可能吗?

最佳答案

我相信您可以使用此按钮通过按钮传递自定义数据:

<input name="custom" type="hidden" id="custom" value="stuff">

关于button - Paypal 自定义数据,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10013439/

相关文章:

ios - 如何从 Braintree iOs SDK 获取随机数

api - 多个发送者,1 个次要接收者?

button - 带有立即购买按钮的 Paypal 折扣代码

react-native - 如何使用 react-native-elements 将按钮的标题向右对齐?

html - 当用户仅使用 CSS 单击按钮时,在 div 中切换登录表单窗口的最佳方法是什么?

android - 错误 - VALIDATION_ERROR : This field required when payment_method is 'paypal'

paypal - 如何验证 Paypal 引用交易是否已启用

android - 适用于非美国开发人员的 Paypal Android SDK

javascript - 更改弹出窗口中使用的按钮类的数据内容

java - Android:按钮不起作用