Skip to content

scr1pt/onpay-rails

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Модуль оплаты для сервиса Onpay.ru

Требования

Ruby > 1.9.3

Как пользоваться

def onpay
  @ctrl = Onpay::PayController.new
  check_lambda = ->(pay_for_id){o=Order.find(pay_for_id);return !o.payed?}
  pay_lambda = ->(pay_for_id){o=Order.find(pay_for_id);o.mark_as_payed;return true}
  render :xml => @ctrl.process(params, "secret", check_payment: check_lambda, onpay: pay_lambda)

end

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages