Sha256: 05ea07372bcb710fcd10a6002e625fa4e95f527aed2b347f290ff116dfd2d058
Contents?: true
Size: 731 Bytes
Versions: 1
Compression:
Stored size: 731 Bytes
Contents
require 'json' module LlPay module Service SECURITY_PAY_REQUIRED_PARAMS = %w(notify_url no_order dt_order busi_partner money_order valid_order user_id) def self.securitypay_pay_json(params, options = {}) params = LlPay::Utils.stringify_keys(params) options = LlPay::Utils.stringify_keys(options) params[:sign_type] = options[:sign_type] || LlPay.sign_type params = { oid_partner: LlPay.oid_partner }.merge(params) params[:sign] = LlPay::Sign.generate(params) params.to_json end def self.check_required_params(params, names) names.each do |name| warn("ll_pay Warn: missing required option: #{name}") unless params.has_key?(name) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ll_pay-0.2.0 | lib/ll_pay/service.rb |