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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 45f481e5db1226716df53655c4140f3d72fd59f3
4
- data.tar.gz: fd5e37a958f99126eb80641cecdb502b7c0f12f7
3
+ metadata.gz: 63b404120f35d0f4f3b5a1461d8d4c12c3e5cd70
4
+ data.tar.gz: e20508cd3435379647fa0554eadfdd75576baa58
5
5
  SHA512:
6
- metadata.gz: 0b242fe93880d7b831764ecc10b3c6e3afb9829a7d4e742eaf59fe95c85f90ab847167272b615c8ca8106b61835c11e0a2844150f4ab12b50e1c4f01d3d57295
7
- data.tar.gz: b8a04b0e60a1d28f419e08515fb1ff1854a3c34111ecbdde8844839d5755c83ac2e6ac43e97c2ff7d1868f4d4ae597f90d60a0d5f4926a6cda4275e7f86fdc10
6
+ metadata.gz: 3eb0ab9e57b928fdaf5c2f158985c3bec7facd9c9a1ff3f8dfa591b4b341c7824f9d44f03e8534052f0286e9ba16718f628a18723bf3ae773b20720da677114e
7
+ data.tar.gz: 424a396f598dc05c5fa69a108f5afb2e4b616aba3a5336e7371db56589cef81157f03d72199358576ce6e3e3b94ccb4839b5435598ead941fb0e53dfd7632392
@@ -143,7 +143,7 @@ module Meowth
143
143
  end
144
144
 
145
145
  # 代付产品 实名认证 参数
146
- def self.create_pay_params(mer_id, order_id, txn_amt, acc_no, certif_id, customer_nm, phone_no)
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
- encrypted_info = Meowth::Util.encrypt("phoneNo=#{phone_no}")
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
@@ -1,3 +1,3 @@
1
1
  module Meowth
2
- VERSION = "0.0.2.1"
2
+ VERSION = "0.0.2.2"
3
3
  end
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.1
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-15 00:00:00.000000000 Z
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.5.1
121
+ rubygems_version: 2.6.8
122
122
  signing_key:
123
123
  specification_version: 4
124
124
  summary: Ruby port of Union Pay SDK.