Hi everyone,
I've been trying to work through the Paypal IPN and DF completion events and I seem to have it all working just great now. It took some time to review all the posts, do some testing, and figure it all out. Seems a lot of the confusion I was having was around the timing and placement of the IPN and completion events.
For anyone having issues, here's what i did ...
- Created Dynamic Form page (all users)
- Created a Payment Confirmation page (all users)
- Created a Payment Cancelled page (all users)
I use 5 completion events as follows:
1. Payment Success Email - Fires on - Completed
2. Payment Pending Email - Fires on - Pending
3. Payment Failed Email - Fires on - Failed & Denied
4. Payment Cancelled Redirect - Fires on - Redirect after Cancel
5. Payment Success Redirect - Fires on - Redirect Successfully
Originally I had tried redirect events for the pending, failed and denied IPNs, but when those were enabled, the related email events did not fire. So only use redirect events with 4 and 5 above.
In Paypal seller account I turned off IPN as this is automatically triggered by DF so no need to set it in PayPal
I also turned off Autoreturn in Paypal ... you could probably use this but I didn't as I thought it was nicer to allow the buyer to have access to the PayPal reciept page. I believe you can still turn this on using the DF post parameters as well.
That did it .. fairly clean and simple once you get the hang of the IPNs and Completion events. To test the failed and pending email events, you can clear or fail echeck transactions within Paypal sandbox. Worked perfectly for Instant, Credit Card, and delayed eCheck transactions.
Hope this helps some people!
BTW: I am using DF 2.6.3 on DNN 4.8.4
Thanks |