Sha256: 4a816c822c020fde27e276ed4347274c7431f7ad84ba192380c26ee7847a3dee
Contents?: true
Size: 525 Bytes
Versions: 3
Compression:
Stored size: 525 Bytes
Contents
require_dependency 'opay/application_controller' module Opay class PayuController < ApplicationController def online render text: Providers::Payu.process(params[:pos_id], params[:session_id], params[:ts], params[:sig]) ? 'OK' : '' end def paygw end def correct_authorization payment = Opay::Payment.where(session_id: params[:session_id]).first! payment.payable.finish redirect_to '/?success' end def wrong_authorizationt redirect_to '/?error' end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
opay-1.1.6 | app/controllers/opay/payu_controller.rb |
opay-1.1.5 | app/controllers/opay/payu_controller.rb |
opay-1.1.4 | app/controllers/opay/payu_controller.rb |