0

I'm trying to update a my users information column once they have purchased this item on my website, but it just wont update! i know how to update queries and ive tried with $_SESSION's but nothing is working!

Dr. Roxem
  • 17
  • 1
  • 3

2 Answers2

0

You can Enable Paypal IPN from below URL

how to enable Instant Payment Notification Preferences of sandbox account?

After enabling IPN in your paypal account you can get response from IPN at your return URL.

Just pass notify URL from your paypal form like below

<input type="hidden" name="notify_url" value="http://www.example.com/test.php">

You will get the IPN response at test.php and then you can update the database accordingly.

Community
  • 1
  • 1
Raghbendra Nayak
  • 1,606
  • 3
  • 22
  • 47
0

How PayPal IPN Works :

  1. User is Rediredcted From Merchant Website to Paypal.
  2. User Pays the amount.
  3. Paypal Call the Url with POST Parameters

So u need to Configure return url and in that u need to Update SQL. For Testing u can use SANDBOX Account.

Google it. There are tons of Tutorials.

Faizal Shap
  • 1,680
  • 1
  • 11
  • 26