Site maintenance: Sun 15 Nov, from 12:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / PayPal Express Checkout support / Why are "paypal" table records not deleted when an order is deleted?

Why are "paypal" table records not deleted when an order is deleted?

Locked

Started by lat9 on 14 Apr 2013, 3:53 PM · Views: 1,212

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
14 Apr 2013, 3:53 PM
#1
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,134
Plugin Contributions:
56

Why are "paypal" table records not deleted when an order is deleted?

In my testing, I create a test/sandbox order via PayPal. Once my testing is completed, I use my Zen Cart admin to delete those test orders.

I recently noticed that the records in my database's "paypal" table aren't removed when the order is deleted ... is this working as intended?

14 Apr 2013, 5:05 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Why are "paypal" table records not deleted when an order is deleted?

One could argue either way: keep it all because it's relevant to true order history; or delete it because there's no corresponding order record anymore. Auditors prefer the former; purists prefer the latter.

At the present time it's working as intended.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

14 Apr 2013, 7:44 PM
#3
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,134
Plugin Contributions:
56

Re: Why are "paypal" table records not deleted when an order is deleted?

Thanks, DrByte, best to keep the auditors happy.