Sha256: f1f39d1ce9f9cef44116349719ff66ba36de54d697ef0009b7a52e770b4892cb

Contents?: true

Size: 572 Bytes

Versions: 1

Compression:

Stored size: 572 Bytes

Contents

module LlPay
  module Notify
    def self.verify?(params, options = {})
      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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ll_pay-0.3.0 lib/ll_pay/notify.rb