Index: /model/wpsg_model.class.php
===================================================================
--- /model/wpsg_model.class.php	(revision 8328)
+++ /model/wpsg_model.class.php	(revision 8329)
@@ -178,4 +178,18 @@
                 $nExistsID = $this->db->fetchOne("SELECT M.`id` FROM `".WPSG_TBL_META."` AS M WHERE M.`meta_table` = '".wpsg_q($class::$_tableName)."' AND M.`meta_key` = '".wpsg_q($meta_key)."' AND `target_id` = '".wpsg_q($this->id)."' ");
 
+				if (wpsg_isSizedInt(wpsg_ShopController::getShop()->get_option('wpsg_debugModus'))) {
+					
+					if ($class::$_tableName === 'WPSG_TBL_ORDER' && $meta_key === 'wpsg_mod_paypalapi_saleid') {
+						
+						$this->addLogEntry('Setze PayPal SaleID: '.$meta_value, json_encode(debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 3), JSON_PRETTY_PRINT));
+						
+					} else if ($class::$_tableName === 'WPSG_TBL_ORDER' && $meta_key === 'wpsg_mod_paypalapi_paymentid') {
+						
+						$this->addLogEntry('Setze PayPal PaymentID: '.$meta_value, json_encode(debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 3), JSON_PRETTY_PRINT));
+						
+					}
+					
+				}
+				
                 if (wpsg_isSizedInt($nExistsID)) {
 
