Paypal Redirect plugin - store transaction ID in database

momentis 01 Nov, 2012
I have spent hours and hours reading through the forums and I am still SO lost (imagine that!)😶

I have a form that uses the Paypal Redirect plugin to process a payment. The passing of billing and product information to Paypal is working perfectly. I have created a new action in my form called "ipn" and added a Paypal Listener action there. I have configured my Paypal account for IPN and the return URL as per the FAQ on this site. The return is working correctly - well, at least it is returning to the appropriate URL.

Is there some way to utilize the response from the Paypal IPN to save the transaction ID from Paypal into the DB record (saved prior to redirecting to Paypal) that originated the transaction? There is SO much on the Paypal topic in these forums, but I am completely lost on this.

Thanks!!!
Rick
Max_admin 03 Nov, 2012
Hi Rick,

Please add this code into the body of an email action in the ipn event:

<?php print_r2($form->data); ?>


Now configure the email, once a new payment is made, you should get an email wit ha list of data returned from the gateway, use it to see which fields you want to store, just insert a DB Save action in the ipn event and make sure that the table's columns names match the returned paypal params.

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.