Displaying 2 results from an estimated 2 matches for "paymentcontroller".
2008 Jun 12
2
SslRequirement Problem
...oblem setting up
SslRequirement plugin.
I have installed the SslRequirement plugin and added it to my
application_controller.rb with include SslRequirement
However, when I try and do "ssl_required :process_payment"
I get the following error:
undefined method `ssl_required'' for PaymentController:Class
For some reason it''s not seeing the ssl_required method.. any ideas??
thanks,
nyte
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk&...
2006 Jul 01
0
Paypal IPN Gem
...rect_to :controller => ''payment'', :action => ''pay''
else
render :action => ''new''
end
end
## I am redirecting the action in another controller called payment, I
also tried keeping this in the same controller byc
class PaymentController < ApplicationController
# Simplification, please write better code then this...
def pay
notify = Paypal::Notification.new(request.raw_post)
if notify.acknowledge
order = Order.find(notify.item_id)
order.success = (notify.complete? and order.total ==
notify...