Class: WechatPayment::PaymentOrdersController

Inherits:
ApplicationController show all
Defined in:
app/controllers/wechat_payment/payment_orders_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



3
4
5
6
7
# File 'app/controllers/wechat_payment/payment_orders_controller.rb', line 3

def index
  @payment_orders = WechatPayment::PaymentOrder.by_state(params[:state])

  render json: @payment_orders
end