简体   繁体   English

Paypal IPN $ _GET交易ID返回成功返回网址

[英]Paypal IPN $_GET Transaction Id back to success return url

I'm trying to make my paypal ipn return to the url with a GET of status with a value of the user paypal transaction id. 我正在尝试使我的贝宝ipn返回状态为GET的网址,并带有用户贝宝交易ID的值。

An example is <input type="hidden" name="return" value="https://example.com/products.php?status=<?php echo $txn_id; ?>"> 一个示例是<input type="hidden" name="return" value="https://example.com/products.php?status=<?php echo $txn_id; ?>">

I want it to get the transaction id from the payment they just payed. 我希望它从他们刚刚支付的付款中获取交易ID。 I have a system that checks everything else, once the transaction id is in the url. 一旦交易ID位于url中,我就有一个检查所有其他内容的系统。

I'm just not sure how to make it get the transaction id in to the URL. 我只是不确定如何使它获得交易ID到URL。

I need to do this on my paypal return form variable so they get redirected back to the page with their transaction id. 我需要在我的Paypal返回表单变量上执行此操作,以便它们被重定向回带有事务ID的页面。

This is a different page from my IPN page. 这是与我的IPN页面不同的页面。

How could I go about doing this ? 我该怎么做呢?

You need to turn on PDT 您需要打开PDT

See here 看这里

and tutorial here 和教程在这里

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM