<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>app/controllers/paypal_payments_controller.rb</filename>
    </added>
    <added>
      <filename>app/views/orders/_paypal_checkout.html.erb</filename>
    </added>
    <added>
      <filename>app/views/orders/edit.html.erb</filename>
    </added>
    <added>
      <filename>lib/paypal/orders_controller.rb</filename>
    </added>
    <added>
      <filename>lib/paypal_configuration.rb</filename>
    </added>
    <added>
      <filename>lib/spree/paypal/config.rb</filename>
    </added>
    <added>
      <filename>spec/controllers/orders_controller_spec.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -2,7 +2,6 @@ class CreatePaypalPayments &lt; ActiveRecord::Migration
   def self.up
     create_table :paypal_payments do |t|
       t.references :order
-      t.string :reference_hash
       t.timestamps
     end
   end</diff>
      <filename>db/migrate/20080720172629_create_paypal_payments.rb</filename>
    </modified>
    <modified>
      <diff>@@ -14,7 +14,7 @@ class PpWebsiteStandardExtension &lt; Spree::Extension
   url &quot;http://yourwebsite.com/spree_pp_website_standard&quot;
 
   define_routes do |map|
-     map.notify '/notify', :controller =&gt; 'checkout', :action =&gt; 'notify'
+    map.resources :orders, :has_one =&gt; [:paypal_payment] 
   end
   
   def activate
@@ -27,13 +27,12 @@ class PpWebsiteStandardExtension &lt; Spree::Extension
       end
     end
 
-    Cart.class_eval do
-      belongs_to :user
-      before_create :create_reference_hash
-
-      def create_reference_hash
-        self.reference_hash = Digest::SHA1.hexdigest(Time.now.to_s)
-      end
+    OrdersController.class_eval do
+skip_before_filter :verify_authenticity_token      
+#      before_filter :verify_authenticity_token, :except =&gt; 'notify'
+#      before_filter :load_object, :only =&gt; [:successful, :notify]
+      include ActiveMerchant::Billing::Integrations
+      include Paypal::OrdersController
     end
     
     # add a PaypalPayment association to the Order model</diff>
      <filename>pp_website_standard_extension.rb</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>app/controllers/checkout_controller.rb</filename>
    </removed>
    <removed>
      <filename>app/views/cart/_paypal_checkout.erb</filename>
    </removed>
    <removed>
      <filename>db/migrate/20080709162932_add_reference_hash.rb</filename>
    </removed>
    <removed>
      <filename>spec/controllers/checkout_controller_spec.rb</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>5798c236c3859e6a8e58ccb14014b77ea6869bcb</id>
    </parent>
  </parents>
  <author>
    <name>Sean Schofield</name>
    <email>schof@apache.org</email>
  </author>
  <url>http://github.com/Gregg/spree-pp-website-standard/commit/9d5d5706f88d68f84b1cba41b18c4df79064e395</url>
  <id>9d5d5706f88d68f84b1cba41b18c4df79064e395</id>
  <committed-date>2008-10-27T13:00:21-07:00</committed-date>
  <authored-date>2008-10-27T13:00:21-07:00</authored-date>
  <message>Initial refactorig to work with Spree 0.4.0.  This is a work in progress (Do not use.)</message>
  <tree>1b787e07c7db4b1c9c1e4f721e454b093cb2cda8</tree>
  <committer>
    <name>Sean Schofield</name>
    <email>schof@apache.org</email>
  </committer>
</commit>
