This is amazing work! Am still having trouble implementing it though (not a coder unfortunately). I copy and paste this into my checkout_success.php file, but the code just shows up on the screen as text when I check out. clearly I am doing something wrong! Where is the best place to put this code? Thanks again for posting this!