cmb_pay 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/cmb_pay.rb +2 -1
- data/lib/cmb_pay/version.rb +1 -1
- metadata +3 -3
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 4350b82a28ede98ad2cb36313cb18e1c3035a95f6b3b675507cd5eef6c49039e
|
4
|
+
data.tar.gz: 2ac802c57e4180ddc1451450535531538f2b81dcfd1b627f8eec7fb8e91bca7e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0628ea60dc8aae62e8777417a8f132632f9c5e518ce879b5ac8bf21fd8ec81bfa021d8f795db38134f0ade165c87fd3abbd581585985c5e5f6321b38e796e3ec'
|
7
|
+
data.tar.gz: bde7d2a7872afa11f875e6a92ce8666930634252b3531748b53004f45a184ec5fdd4c4e1f73f666970880dfc693773dcb523ded5ce83e4a236b7ec82d216ba70
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/cmb_pay.rb
CHANGED
@@ -216,6 +216,7 @@ module CmbPay
|
|
216
216
|
branch_id = options.delete(:branch_id) || CmbPay.branch_id
|
217
217
|
co_no = options.delete(:co_no) || CmbPay.co_no
|
218
218
|
co_key = options.delete(:co_key) || CmbPay.co_key
|
219
|
+
mch_no = options.delete(:mch_no) || CmbPay.mch_no
|
219
220
|
cmb_bill_no = Util.cmb_bill_no(bill_no)
|
220
221
|
expire_in_minutes = options.delete(:expire_in_minutes) || CmbPay.expire_in_minutes
|
221
222
|
pay_in_yuan, pay_in_cent = amount_in_cents.to_i.divmod(100)
|
@@ -230,7 +231,7 @@ module CmbPay
|
|
230
231
|
end
|
231
232
|
random = options.delete(:random)
|
232
233
|
if protocol.is_a?(Hash) && !payer_id.nil?
|
233
|
-
cmb_reserved_xml = "<Protocol><PNo>#{protocol['PNo']}</PNo><TS>#{protocol['TS'] || Time.now.strftime('%Y%m%d%H%M%S')}</TS><MchNo>#{
|
234
|
+
cmb_reserved_xml = "<Protocol><PNo>#{protocol['PNo']}</PNo><TS>#{protocol['TS'] || Time.now.strftime('%Y%m%d%H%M%S')}</TS><MchNo>#{mch_no}</MchNo><Seq>#{protocol['Seq']}</Seq><MUID>#{payer_id}</MUID><URL>#{merchant_url}</URL><Para>#{cmb_merchant_para}</Para></Protocol>"
|
234
235
|
else
|
235
236
|
cmb_reserved_xml = generate_cmb_card_bank_xml(card_bank)
|
236
237
|
payee_id = nil
|
data/lib/cmb_pay/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cmb_pay
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Guo
|
@@ -30,7 +30,7 @@ cert_chain:
|
|
30
30
|
fGxGnQhzVaW07NKOCRrAZlrF8iqso4JR7Vm9bhFdzxUPLr70njwHLtDS2CHgo1VW
|
31
31
|
1xAjN8ZXXpAmVv7V6cI9RTmQHPu/fFn+E0sG9w==
|
32
32
|
-----END CERTIFICATE-----
|
33
|
-
date: 2018-
|
33
|
+
date: 2018-04-27 00:00:00.000000000 Z
|
34
34
|
dependencies:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: http
|
@@ -141,7 +141,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
141
141
|
version: '0'
|
142
142
|
requirements: []
|
143
143
|
rubyforge_project:
|
144
|
-
rubygems_version: 2.6
|
144
|
+
rubygems_version: 2.7.6
|
145
145
|
signing_key:
|
146
146
|
specification_version: 4
|
147
147
|
summary: An unofficial cmb (China Merchants Bank) pay gem.
|
metadata.gz.sig
CHANGED
Binary file
|