<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -50,9 +50,14 @@ class Store::NotificationController &lt; ApplicationController
 
     ba = n['buyer-billing-address']
 
-    words = ba['contact-name'].split(' ')
-    order.first_name = words.shift
-    order.last_name = words.join(' ')
+    if ba['structured-name']
+      order.first_name = _xmlval(ba['structured-name'], 'first-name')
+      order.last_name = _xmlval(ba['structured-name'], 'last-name')
+    else
+      words = ba['contact-name'].split(' ')
+      order.first_name = words.shift
+      order.last_name = words.join(' ')
+    end
 
     order.email = _xmlval(ba, 'email')
     if order.email == nil # This shouldn't happen, but just in case</diff>
      <filename>app/controllers/store/notification_controller.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>6f754791810710cba8fe67aac8f6e083e31cff0e</id>
    </parent>
  </parents>
  <author>
    <name>Andy Kim</name>
    <email>andy@potionfactory.com</email>
  </author>
  <url>http://github.com/potionfactory/potionstore/commit/38ce7b7feb9615977fee8ba65eedd79d50da5f1a</url>
  <id>38ce7b7feb9615977fee8ba65eedd79d50da5f1a</id>
  <committed-date>2009-05-21T11:53:00-07:00</committed-date>
  <authored-date>2009-05-21T11:53:00-07:00</authored-date>
  <message>Get the parsed first and last names when getting a Google Checkout notification callback. Patch sent by Paul Kim.</message>
  <tree>0f666a07987bf59ffee83c84d315dc4ed5706733</tree>
  <committer>
    <name>Andy Kim</name>
    <email>andy@potionfactory.com</email>
  </committer>
</commit>
