Sha256: 25cf6fd9f761136d71e32255bbe168e358e86b650ce9da90e990052b3ec8e296
Contents?: true
Size: 590 Bytes
Versions: 3
Compression:
Stored size: 590 Bytes
Contents
module CatarsePagarme class NotificationsController < ApplicationController skip_before_filter :authenticate_user! def create if PagarMe::validate_fingerprint(contribution.try(:payment_id), params[:fingerprint]) if contribution contribution.payment_notifications.create(extra_data: params.to_json) delegator.change_status_by_transaction(params[:current_status]) return render nothing: true, status: 200 end return render nothing: true, status: 404 end render nothing: true, status: 404 end end end
Version data entries
3 entries across 3 versions & 1 rubygems