如何检查发送给贝宝的初始消息?

时间:2018-12-07 12:39:47

标签: paypal httprequest

我需要将触发发送到Paypal的初始Http消息的用户与交易完成后我在后端接收的IPN匹配。由于Paypal不了解我的用户数据库,因此我正在寻找某种交易ID。

问题是,当用户单击贝宝托管按钮时,贝宝会打开另一个窗口并处理买方登录以及那里的所有其他付款步骤。

我已经查看了新的Paypal窗口的URL,并且IPN上也没有任何内容。

有没有办法检查从前端发送给Paypal的初始http消息?

1 个答案:

答案 0 :(得分:1)

You can use the custom parameter to pass your own unique ID into the payment request. This would then be returned in the same custom parameter included in IPN.

The field is literally called custom and you can pass anything you want in it up to 256 characters.

You should be able to add it as an additional hidden field in your HTML form for the hosted button. If it doesn't pass as expected that way, though, you'll need to use a non-hosted button.