lib/ll_pay/notify.rb in ll_pay-0.2.0 vs lib/ll_pay/notify.rb in ll_pay-0.3.0

- old
+ new

@@ -1,7 +1,18 @@ module LlPay module Notify def self.verify?(params, options = {}) - Sign.verify?(params, options) && LlPay.oid_partner == params[:oid_partner] + sign_params = { + 'oid_partner' => params['oid_partner'], + 'sign_type' => params['sign_type'], + 'dt_order' => params['dt_order'], + 'no_order' => params['no_order'], + 'oid_paybill' => params['oid_paybill'], + 'money_order' => params['money_order'], + 'result_pay' => params['result_pay'], + 'bank_code' => params['bank_code'] + } + + LlPay::Sign.verify?(params, options) && LlPay.oid_partner == params[:oid_partner] end end end