Paypal & PDT


https://forum.kartris.com/Topic6867.aspx
Print Topic | Close Window

By BORNXenon - Fri 10 Mar 2017
I'm in the throws of setting up a nopCommerce site for a customer who already has a Kartris site running v2.7001 and wants to use the same PayPal account for both sites.

The Kartris User Guide says to turn off PDT because 'it is not needed', the nopCommerce documentation says it should be enabled.

My question is, will enabling PDT have any adverse effects on Kartris? I know it says it 'is not needed' but will I start getting duplicate orders / notifications if it is enabled?

ta

BX
By BORNXenon - Mon 13 Mar 2017
Anyone?
By Paul - Tue 14 Mar 2017
It should be fine to leave it on. PDT (payment data transfer) basically posts back the transaction result within the return URL, when the user is redirected back to the shop after making a payment on paypal.

Kartris doesn't require this, as it uses the IPN (instant payment notification) which is sent from the paypal server direct to the Kartris callback script at the point payment is made. This is more reliable, because Paypal enforces a 5 second delay before sending a customer back to the shop web site, and in that time some users might exit the process, meaning you get orders completed with payment but that don't get updated in your store as 'paid'.

Kartris will at default set the return URL to the CheckoutComplete.aspx page in the root of Kartris. Hopefully any extra data passed with PDT won't affect what happens here, but even if it does, it happens after the order will already have been marked 'paid' by Kartris, so probably not important.
By BORNXenon - Wed 15 Mar 2017
Thanks Paul,

I had a look through the code and saw that Kartris checks a DB Field called 'Sent' when it processes a payment, if 'Sent' is set to 'False' it continues to process and sets the field to 'True'.

Based on the above I figured it would handle PDT without causing duplicates so changed PDT to 'On' and there has been orders placed since with no apparent ill effects. I will keep monitoring it and post back if there are any problems.