--- ubercart/payment/uc_payment/uc_payment.js	2009/11/19 09:19:09	1393
+++ ubercart/payment/uc_payment/uc_payment.js	2009/11/19 09:20:54	1394
@@ -87,6 +87,7 @@
   var b_zone = $("select[name*=billing_zone]").val() || '0';
   var b_code = $("input[name*=billing_postal_code]").val() || '';
   var b_country = $("select[name*=billing_country]").val() || '0';
+  var b_vat =  $("input[name*=vat_number]").val() || '';
 
   var line_item = '';
   var key;
@@ -105,7 +106,7 @@
   }
   line_item = 's:10:"line_items";a:' + i + ':{' + line_item + '}';
 
-  var order_size = 21;
+  var order_size = 22;
   var order = 'O:8:"stdClass":' + order_size + ':{s:8:"products";' + products
     + 's:8:"order_id";i:0;'
     + 's:3:"uid";i:0;'
@@ -125,7 +126,8 @@
     + '";s:12:"billing_city";s:' + b_city.bytes() + ':"' + b_city
     + '";s:12:"billing_zone";i:' + b_zone
     + ';s:19:"billing_postal_code";s:' + b_code.bytes() +':"' + b_code
-    + '";s:15:"billing_country";i:' + b_country + ';'
+    + '";s:15:"billing_country";i:' + b_country
+    + ';s:4:"data";a:1:{s:10:"vat_number";s:' + b_vat.bytes() + ':"' + b_vat + '";}'
     + line_item + '}';
 
   return order;
--- ubercart/uc_taxes/uc_taxes.js	2009/11/19 09:19:09	1393
+++ ubercart/uc_taxes/uc_taxes.js	2009/11/19 09:22:18	1395
@@ -22,7 +22,8 @@
     + "select[name*=billing_country], "
     + "select[name*=billing_zone], "
     + "input[name*=billing_city], "
-    + "input[name*=billing_postal_code]").change(getTax);
+    + "input[name*=billing_postal_code], "
+    + "input[name*=vat_number]").change(getTax);
   $("input[name*=copy_address]").click(getTax);
   $('#edit-panes-payment-current-total').click(getTax);
 });
