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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: b4fe1baec1d8dc2a65f37c89a737fd79f9d7596c
4
- data.tar.gz: 9cec2f3f21381d3da7776d5a6ed00c9f3121e08d
2
+ SHA256:
3
+ metadata.gz: 4350b82a28ede98ad2cb36313cb18e1c3035a95f6b3b675507cd5eef6c49039e
4
+ data.tar.gz: 2ac802c57e4180ddc1451450535531538f2b81dcfd1b627f8eec7fb8e91bca7e
5
5
  SHA512:
6
- metadata.gz: d21b003f2010787be4b8dbe93342759bcda2a58b72f1d0d6c2be949609f97be8b5981cd25380482013f52c11df211b4d865e0e15af3891afad6a7d34cd0d032f
7
- data.tar.gz: 6e7f59ffac09db7bcc6cda95b1ed63943a66fadc5f8e23ddfca3df62ec404267b1fae3ab34d490fb0a602a6000be6646cf2d0f1ed3e78a14fa84fb7ed4d14ea9
6
+ metadata.gz: '0628ea60dc8aae62e8777417a8f132632f9c5e518ce879b5ac8bf21fd8ec81bfa021d8f795db38134f0ade165c87fd3abbd581585985c5e5f6321b38e796e3ec'
7
+ data.tar.gz: bde7d2a7872afa11f875e6a92ce8666930634252b3531748b53004f45a184ec5fdd4c4e1f73f666970880dfc693773dcb523ded5ce83e4a236b7ec82d216ba70
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -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>#{CmbPay.mch_no}</MchNo><Seq>#{protocol['Seq']}</Seq><MUID>#{payer_id}</MUID><URL>#{merchant_url}</URL><Para>#{cmb_merchant_para}</Para></Protocol>"
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
@@ -1,3 +1,3 @@
1
1
  module CmbPay
2
- VERSION = '1.0.0'.freeze
2
+ VERSION = '1.0.1'.freeze
3
3
  end
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.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-01-22 00:00:00.000000000 Z
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.14
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