Index: /controller/wpsg_ShopController.class.php
===================================================================
--- /controller/wpsg_ShopController.class.php	(revision 7160)
+++ /controller/wpsg_ShopController.class.php	(revision 7161)
@@ -2435,4 +2435,7 @@
 		{
 
+            // Keine Ãnderung, dann abbrechen
+            if ($this->view['order']['status'] == $status_id) return false;
+		    
 			// Muss vor der Mailsache aufgerufen werden da sonst die Felder der Bestellung nicht gesetzt sind (Paketverfolgung)
 			// Die Bestellung darf auch noch nicht geladen sein, sonst wird das Objekt aus dem Cache genommen
@@ -2449,7 +2452,4 @@
 
 			}
-
-			// Keine Ãnderung, dann abbrechen
-			if ($this->view['order']['status'] == $status_id) return false;
 
 			if ($status_id == 100)
Index: /mods/wpsg_mod_paypalapi.class.php
===================================================================
--- /mods/wpsg_mod_paypalapi.class.php	(revision 7160)
+++ /mods/wpsg_mod_paypalapi.class.php	(revision 7161)
@@ -674,8 +674,9 @@
 			if ($this->shop->setPayMent($oOrder->id, $amount) && $orderPaymentID === $payment_id && $payment_state === 'approved' && $sale_state === 'completed')
 			{
-				
+
+                $oOrder->log(__('PayPalAPI WebHook Erfolg', 'wpsg'), print_r($jsonData, 1));
+			    
 				$this->shop->setOrderStatus($oOrder->id, 100, true);					 			
-				$oOrder->log(__('PayPalAPI WebHook Erfolg', 'wpsg'), print_r($jsonData, 1));
-				
+								
 			}
 			else 
Index: /mods/wpsg_mod_voucherproduct.class.php
===================================================================
--- /mods/wpsg_mod_voucherproduct.class.php	(revision 7160)
+++ /mods/wpsg_mod_voucherproduct.class.php	(revision 7161)
@@ -260,5 +260,5 @@
 						"o_id" => wpsg_q($order_id),
 						"title" => wpsg_translate(__("Gutscheinmail an: #1#", "wpsg"), $empfaenger),
-						"mailtext" => $nachricht
+						"mailtext" => $mail_text
 					));
 
