meowth 0.0.2.1 → 0.0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/meowth/service.rb +2 -3
- data/lib/meowth/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 63b404120f35d0f4f3b5a1461d8d4c12c3e5cd70
|
4
|
+
data.tar.gz: e20508cd3435379647fa0554eadfdd75576baa58
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3eb0ab9e57b928fdaf5c2f158985c3bec7facd9c9a1ff3f8dfa591b4b341c7824f9d44f03e8534052f0286e9ba16718f628a18723bf3ae773b20720da677114e
|
7
|
+
data.tar.gz: 424a396f598dc05c5fa69a108f5afb2e4b616aba3a5336e7371db56589cef81157f03d72199358576ce6e3e3b94ccb4839b5435598ead941fb0e53dfd7632392
|
data/lib/meowth/service.rb
CHANGED
@@ -143,7 +143,7 @@ module Meowth
|
|
143
143
|
end
|
144
144
|
|
145
145
|
# 代付产品 实名认证 参数
|
146
|
-
def self.
|
146
|
+
def self.create_payment_params(mer_id, order_id, txn_amt, acc_no, customer_nm)
|
147
147
|
params = {}
|
148
148
|
params[Meowth::Constant::VERSION] = "5.0.0"
|
149
149
|
params[Meowth::Constant::ENCODING] = "UTF-8"
|
@@ -161,8 +161,7 @@ module Meowth
|
|
161
161
|
params[Meowth::Constant::TXN_TIME] = Time.now.strftime('%Y%m%d%H%M%S')
|
162
162
|
params[Meowth::Constant::ACC_TYPE] = "01"
|
163
163
|
params[Meowth::Constant::ACC_NO] = Meowth::Util.encrypt(acc_no)
|
164
|
-
|
165
|
-
params[Meowth::Constant::CUSTOMER_INFO] = Base64.strict_encode64("{certifId=#{certif_id}&certifTp=01&customerNm=#{customer_nm}&encryptedInfo=#{encrypted_info}}")
|
164
|
+
params[Meowth::Constant::CUSTOMER_INFO] = Base64.strict_encode64("{customerNm=#{customer_nm}}")
|
166
165
|
params[Meowth::Constant::ENCRYPT_CERT_ID] = Meowth::Config.encrypt_cert_id
|
167
166
|
Meowth::Util.sign(params)
|
168
167
|
end
|
data/lib/meowth/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: meowth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.2.
|
4
|
+
version: 0.0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jack Pan
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-03-
|
11
|
+
date: 2017-03-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -118,7 +118,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
118
118
|
version: '0'
|
119
119
|
requirements: []
|
120
120
|
rubyforge_project:
|
121
|
-
rubygems_version: 2.
|
121
|
+
rubygems_version: 2.6.8
|
122
122
|
signing_key:
|
123
123
|
specification_version: 4
|
124
124
|
summary: Ruby port of Union Pay SDK.
|