Paypal IPN $_GET Transaction Id back to success return url

时间:2017-08-05 11:46:00

标签: php paypal paypal-ipn

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.

An example is <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. I have a system that checks everything else, once the transaction id is in the url.

I'm just not sure how to make it get the transaction id in to the URL.

I need to do this on my paypal return form variable so they get redirected back to the page with their transaction id.

This is a different page from my IPN page.

How could I go about doing this ?

1 个答案:

答案 0 :(得分:0)

您需要启用PDT

See here

and tutorial here