[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 787
  • Last Modified:

Paypal ipn integration with php mysql smarty

hi,
i'm looking for a easy to go paypal ipn integration script.
What i want is once client make payment, the database should be updated with paypal transaction id.
my sql table which i want to update with paypal transaction id is simple, with fields like
id
date
package
cost
status
paypal txn id  // to be updated...

How can i achieve this...
if possible give a working code...
thanks
zia
0
global_expert_advice
Asked:
global_expert_advice
  • 2
1 Solution
 
AUCKLANDITCommented:
Have the notifications page set.

You need to send a custom var (random number etc) to paypal and save that same custom var to your database

then in your notification page

$key = $_POST['custom'];

$txn_id = $_POST['txn_id'];

then update paypal_txn_id to $txn_id where customkey = $key

there are a number of scripts out there that do this nicley...
0
 
AUCKLANDITCommented:
http://www.opendb.net/element/369.php thats an example of one I have used before.
0
 
global_expert_adviceAuthor Commented:
okay solution
0

Featured Post

[Webinar] Kill tickets & tabs using PowerShell

Are you tired of cycling through the same browser tabs everyday to close the same repetitive tickets? In this webinar JumpCloud will show how you can leverage RESTful APIs to build your own PowerShell modules to kill tickets & tabs using the PowerShell command Invoke-RestMethod.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now