Index: /mods/wpsg_mod_paypalapi.class.php
===================================================================
--- /mods/wpsg_mod_paypalapi.class.php	(revision 7226)
+++ /mods/wpsg_mod_paypalapi.class.php	(revision 7227)
@@ -1257,4 +1257,12 @@
 			} 
 			
+			/** @var wpsg_country $oInvoiceCountry */
+			$oInvoiceCountry = null; if (wpsg_isSizedInt($arBasket['checkout']['land'])) $oInvoiceCountry = wpsg_country::getInstance($arBasket['checkout']['land']);
+			 
+			/** @var wpsg_country $oShippingCountry */
+			$oShippingCountry = null; 			
+			if ($oInvoiceCountry !== null) $oShippingCountry = $oInvoiceCountry;			
+			if (wpsg_isSizedInt($arBasket['checkout']['shipping_land'])) $oShippingCountry = wpsg_country::getInstance($arBasket['checkout']['shipping_land']);
+			
 			$post_data['intent'] = 'sale';
 			$post_data['payer'] = array(
@@ -1262,4 +1270,33 @@
 			);			
 				
+			if ($oInvoiceCountry !== null) {
+												
+				$post_data['payer']['payer_info'] = [
+					'email' => $arBasket['checkout']['email'], 
+					'first_name' => $arBasket['checkout']['vname'],
+					'last_name' => $arBasket['checkout']['name'],
+					'billing_address' => [
+						'line1' => trim($arBasket['checkout']['strasse']),
+						'line2' => '',
+						'city' => trim($arBasket['checkout']['ort']),
+						'country_code' => $oInvoiceCountry->getShorttext(),
+						'postal_code' => trim($arBasket['checkout']['plz']),						
+					]
+				];
+				
+				if (strtotime($arBasket['checkout']['geb']) > 0) {
+					
+					$post_data['payer']['payer_info']['birth_date'] = date('Y-m-d', strtotime($arBasket['checkout']['geb']));
+					
+				}
+				
+				if (preg_match('/^(?:\((\+?\d+)?\)|\+?\d+) ?\d*(-?\d{2,3} ?){0,4}$/', $arBasket['checkout']['tel'])) {
+					
+					$post_data['payer']['payer_info']['billing_address']['phone'] = preg_replace('/ /', '', $arBasket['checkout']['tel']); 
+										
+				}
+				
+			}
+			
 			if ($oOrder->status == wpsg_ShopController::STATUS_UNVOLLSTAENDIG)
 			{
@@ -1310,4 +1347,41 @@
 			 * Bei Nettorechnungen kann es hier zu Problemen fÃŒhren Siehe Track Ticket 505
 			 */
+			
+			$shipping_address = [];
+			 
+			// Lieferadresse
+			if ($oShippingCountry !== null) {
+			
+				if (wpsg_getStr($arBasket['checkout']['diff_shippingadress']) == '1') {
+				
+					$shipping_address = [
+						'recipient_name' => trim($arBasket['checkout']['shipping_firma'].' '.$arBasket['checkout']['shipping_vname'].' '.$arBasket['checkout']['shipping_name']),
+						'line1' => trim($arBasket['checkout']['shipping_strasse']),
+						'line2' => '',
+						'city' => trim($arBasket['checkout']['shipping_ort']),		
+						'country_code' => $oShippingCountry->getShorttext(),
+						'postal_code' => trim($arBasket['checkout']['shipping_plz'])
+					];
+					
+				} else {
+					
+					$shipping_address = [
+						'recipient_name' => trim($arBasket['checkout']['firma'].' '.$arBasket['checkout']['vname'].' '.$arBasket['checkout']['name']),
+						'line1' => trim($arBasket['checkout']['strasse']),
+						'line2' => '',
+						'city' => trim($arBasket['checkout']['ort']),
+						'country_code' => $oShippingCountry->getShorttext(),
+						'postal_code' => trim($arBasket['checkout']['plz'])
+					];
+					
+				}
+				
+			}
+			
+			if (wpsg_isSizedArray($shipping_address) && isset($post_data['transactions'][0]['item_list'])) {
+			 
+				$post_data['transactions'][0]['item_list']['shipping_address'] = $shipping_address;
+				
+			}
 			
 			if (wpsg_isSizedInt($this->shop->get_option('wpsg_mod_paypalapi_paypalexpress_details')) && floatval($subTotal) === floatval($arBasket['sum']['preis_gesamt_brutto']))
