Class: EricWeixin::Wz::PaysController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- EricWeixin::Wz::PaysController
- Defined in:
- app/controllers/eric_weixin/wz/pays_controller.rb
Instance Method Summary collapse
Instance Method Details
#pay_fail ⇒ Object
11 12 13 |
# File 'app/controllers/eric_weixin/wz/pays_controller.rb', line 11 def pay_fail render text: '您支付失败,请返回重新尝试,谢谢。' end |
#pay_ok ⇒ Object
7 8 9 |
# File 'app/controllers/eric_weixin/wz/pays_controller.rb', line 7 def pay_ok render text: '您支付成功,谢谢。' end |
#prepay ⇒ Object
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 |