Class: EricWeixin::Wz::PaysController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/eric_weixin/wz/pays_controller.rb

Instance Method Summary collapse

Instance Method Details

#pay_failObject



11
12
13
# File 'app/controllers/eric_weixin/wz/pays_controller.rb', line 11

def pay_fail
  render text: '您支付失败,请返回重新尝试,谢谢。'
end

#pay_okObject



7
8
9
# File 'app/controllers/eric_weixin/wz/pays_controller.rb', line 7

def pay_ok
  render text: '您支付成功,谢谢。'
end

#prepayObject



3
4
5
# File 'app/controllers/eric_weixin/wz/pays_controller.rb', line 3

def prepay
  @prepay_id = ::EricWeixin::Pay.generate_prepay_id params
end