Sha256: 9339d028eae268893f34b400261c3e5c2b4a50996ba085032eff3b28a89aa552
Contents?: true
Size: 664 Bytes
Versions: 1
Compression:
Stored size: 664 Bytes
Contents
module Spree class PagSeguroController < ApplicationController protect_from_forgery :except => [:notify] def notify 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 end def callback end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spree_pag_seguro-1.0.0.beta12 | app/controllers/spree/pag_seguro_controller.rb |