贝宝自定义数据 [英] Paypal custom data

查看:90
本文介绍了贝宝自定义数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

Is there a way to send custom data to Paypal when using a simple button to make payments?

<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将其取回.这有可能吗?

I'd like to have field in this form where I can set a value and get it back with IPN. Is this possible at all?

推荐答案

我相信您可以通过按钮通过以下方式传递自定义数据:

I believe you can pass custom data through a button with this:

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

这篇关于贝宝自定义数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆