Sha256: 85c60f278cc0ed18d6e11b5f34dbe669ddfae450a581afa73f3eaaa5934ebe61
Contents?: true
Size: 716 Bytes
Versions: 15
Compression:
Stored size: 716 Bytes
Contents
module CatarsePagarme class NotificationsController < CatarsePagarme::ApplicationController skip_before_filter :authenticate_user! skip_before_filter :force_http def create if contribution contribution.payment_notifications.create(extra_data: params.to_json) if PagarMe::validate_fingerprint(contribution.try(:payment_id), params[:fingerprint]) delegator.change_status_by_transaction(params[:current_status]) return render nothing: true, status: 200 end end render nothing: true, status: 404 end protected def contribution @contribution ||= PaymentEngines.find_payment({ payment_id: params[:id] }) end end end
Version data entries
15 entries across 15 versions & 1 rubygems