10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# File 'app/controllers/notify_controller.rb', line 10
def index
notice = GeeePay::Notice.new
notice.version_id = params[:versionId]
notice.trans_type = params[:transType]
notice.asyn_notify_url = params[:asynNotifyUrl]
notice.syn_notify_url = params[:synNotifyUrl]
notice.mer_id = params[:merId]
notice.order_amount = params[:orderAmount]
notice.prd_ord_no = params[:prdOrdNo]
notice.order_status = params[:orderStatus]
notice.pay_id = params[:payId]
notice.pay_time = params[:payTime]
notice.sign_type = params[:signType]
notice.mer_param = params[:merParam]
notice.sign_data = params[:signData]
if notice.save
render text: 'SUCCESS'
else
render text: 'FAIL'
end
end
|