Index: /mods/wpsg_mod_micropayment.class.php
===================================================================
--- /mods/wpsg_mod_micropayment.class.php	(revision 7496)
+++ /mods/wpsg_mod_micropayment.class.php	(revision 7497)
@@ -362,7 +362,9 @@
 		public function order_done(&$order_id, &$done_view)
 		{
-		 
+			
+			$oOrder = wpsg_order::getInstance($order_id);
+			
 			// Bestellungen mit 0 geben nix aus
-			if ($done_view['basket']['sum']['preis_gesamt_brutto'] <= 0) return;
+			if ($oOrder->getToPay() <= 0) return;
 				
 			if (preg_match('/^'.$this->id.'_\d+$/', $this->shop->view['basket']['checkout']['payment']))
@@ -892,4 +894,6 @@
 			$order_data = $this->shop->cache->loadOrder($order_id);
 			 
+			$oOrder = wpsg_order::getInstance($order_id);
+			
 			if (!preg_match('/^'.$this->id.'_\d+$/', $order_data['type_payment'])) throw new \wpsg\Exception(__('Es wurde versucht einen Zahlungslink fÃŒr eine Bestellung anzufragen, die nicht mit Micropayment bezahlt wurde', 'wpsg'));
 			
@@ -907,5 +911,5 @@
 					
 					$url = $this->event_creditcard_url;
-					$arParam['amount'] = wpsg_round(wpsg_tf($order_data['price_gesamt']), 2) * 100;
+					$arParam['amount'] = wpsg_round($oOrder->getToPay(), 2) * 100;
 					$arParam['currency'] = 'EUR';
 					
@@ -915,5 +919,5 @@
 					
 					$url = $this->event_creditcard_url;
-					$arParam['amount'] = wpsg_round(wpsg_tf($order_data['price_gesamt']), 2) * 100;
+					$arParam['amount'] = wpsg_round($oOrder->getToPay(), 2) * 100;
 					$arParam['currency'] = 'EUR';
 							
@@ -924,5 +928,5 @@
 					$url = $this->event_directdebit_url;
 					$arParam['paytext'] = $this->shop->replaceUniversalPlatzhalter(__($this->shop->get_option('wpsg_mod_micropayment_directdebit_subject'), 'wpsg'), $order_id);
-					$arParam['amount'] = wpsg_round(wpsg_tf($order_data['price_gesamt']), 2) * 100;
+					$arParam['amount'] = wpsg_round($oOrder->getToPay(), 2) * 100;
 					$arParam['userid'] = $order_data['k_id'];
 					
@@ -932,5 +936,5 @@
 					
 					$url = $this->event_ebank2pay_url;
-					$arParam['amount'] = wpsg_round(wpsg_tf($order_data['price_gesamt']), 2) * 100;
+					$arParam['amount'] = wpsg_round($oOrder->getToPay(), 2) * 100;
 					
 					break;
@@ -940,5 +944,5 @@
 					$url = $this->event_prepayment_url;
 					$arParam['paytext'] = $this->shop->replaceUniversalPlatzhalter(__($this->shop->get_option('wpsg_mod_micropayment_prepayment_subject'), 'wpsg'), $order_id);
-					$arParam['amount'] = wpsg_round(wpsg_tf($order_data['price_gesamt']), 2) * 100;
+					$arParam['amount'] = wpsg_round($oOrder->getToPay(), 2) * 100;
 					
 					break;
@@ -947,5 +951,5 @@
 				
 					$url = $this->event_call2pay_url;
-					$arParam['amount'] = wpsg_round(wpsg_tf($order_data['price_gesamt']), 2) * 100;
+					$arParam['amount'] = wpsg_round($oOrder->getToPay(), 2) * 100;
 					
 					break;
@@ -954,5 +958,5 @@
 							
 					$url = $this->event_handypay_url; 
-					$arParam['amount'] = wpsg_round(wpsg_tf($order_data['price_gesamt']), 2) * 100;
+					$arParam['amount'] = wpsg_round($oOrder->getToPay(), 2) * 100;
 					
 					break;
