adamthedeveloper / wepay-rails

Collect payments from wepay in your rails application.
MIT License
32 stars 24 forks source link

Fixed: Missing Wepay::CheckoutController ALSO Added extra security to IPN listener #3

Closed adamthedeveloper closed 12 years ago

adamthedeveloper commented 12 years ago

A file was missing from the gem - namely the app/controllers/wepay/checkout_controller.rb file. I added it in.

I also wanted to add an additional security check to the IPN and checkout controller - if you are using a version prior to 2.2.0, and you want to use the latest version, you will need to add a migration to your rails app to add a security_token column to wepay_checkout_records. Create a migration and add this line:

add_column :wepay_checkout_records, :security_token, :string

New installs of version 2.2.0 will already have this column since I added the additional column to the migration template.

Please let me know if you run into problems and I will help out.