Sha256: f983f9b2225658b1ead5115095aa827807827bddc8fa5b4297e0db9babe70c75
Contents?: true
Size: 662 Bytes
Versions: 35
Compression:
Stored size: 662 Bytes
Contents
module Effective module Providers module Paypal extend ActiveSupport::Concern included do skip_before_filter :verify_authenticity_token, :only => [:paypal_postback] end def paypal_postback @order ||= Effective::Order.where(:id => params[:invoice].to_i).first EffectiveOrders.authorized?(self, :update, @order) if @order.present? if params[:payment_status] == 'Completed' && params[:custom] == EffectiveOrders.paypal[:secret] order_purchased(params) else order_declined(params) end end head(:ok) end end end end
Version data entries
35 entries across 35 versions & 1 rubygems