Sha256: 70571f021f5bf4c9c34343d67132d31d3a9d324e82d35c76ac4d7f5195941d16
Contents?: true
Size: 721 Bytes
Versions: 1
Compression:
Stored size: 721 Bytes
Contents
module Spree class PagSeguroController < Spree::BaseController protect_from_forgery :except => [:notify] def notify raise params.inspect email = Spree::PagSeguro::Config.email token = Spree::PagSeguro::Config.token notification_code = params[:notificationCode] notification = ::PagSeguro::Notification.new(email, token, notification_code) logger.info "PagSeguro Notification code: #{notification_code}\n\n\n" logger.info "PagSeguro Notification inspect:\n#{notification.inspect}" if notification.approved? order = Spree::Order.find(notification.id) end render head: :ok end def callback end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spree_pag_seguro-1.0.0.beta13 | app/controllers/spree/pag_seguro_controller.rb |