chan_pay 0.4.0 → 0.6.0

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: 4f28321ff6a9623326627794cc1554539693e93d
4
- data.tar.gz: 527a2bad75b12f1727141372670dff7efdc3c169
3
+ metadata.gz: 7f7cfb3bbcfdc094b1de8969a506125098e98436
4
+ data.tar.gz: cea8ffc6330ce065ec706ab07adba2a8faa26c74
5
5
  SHA512:
6
- metadata.gz: 964922ce8620dc43d79b44e6e3dff58ff5c4d2f276a0f2b76aed0712a4f55d5a5367e43e0274b0fde1dac5829bf028b254e162388adcd8b9aaa172e4f17e8d27
7
- data.tar.gz: 9b03c8adf50c2db886015556c096561f6fc88775a1d10a4b59f553bd1cdc7c921dd61aceb83be2b13d3996ac9fbccfce080fd1ede84f2ab2f824d92042e178be
6
+ metadata.gz: 36b1991a9fee64d5f91a3ff55f244b0766e8875bc15be6643aa2aba49258f284148af40cd8dd6ffc1670cbb0385a78deb33acc14f01bd15c1e68f5411329b1dc
7
+ data.tar.gz: 6db9516e6b422ab98ea1aeb855fef0c383afecac9c5e256806282f7b7503ff7772fe3f7d463128a6e03fd6c9eced39031f82ebeafdbfc41ea93ea88c45157233
data/README.md CHANGED
@@ -9,6 +9,8 @@
9
9
  5. 商户余额查询
10
10
  6. 快捷代扣请求接口
11
11
 
12
+ **说明** 测试中的用例,会因为测试账号的权限问题(畅捷如果改变测试账号权限)导致有些接口测试失败,根据具体返回错误修正即可
13
+
12
14
  ## 安装
13
15
 
14
16
  Gemfile 中增加:
@@ -32,8 +32,13 @@ module ChanPay
32
32
  result = RetCode.general_error_response(response.code,
33
33
  RetCode::UNKNOWN_ERROR)
34
34
  end
35
- rescue Net::ReadTimeout # 请求超时
36
- result = RetCode.general_error_response(0, RetCode::NET_TIMEOUT)
35
+ rescue Net::ReadTimeout # 请求超时,当 pending 处理
36
+ result = {
37
+ :AcceptStatus => "S", # 业务受理成功
38
+ :RetCode => RetCode::NET_TIMEOUT,
39
+ :RetMsg => "网络异常(0)",
40
+ :Status => "P", # 业务 PENDING
41
+ }
37
42
  end
38
43
 
39
44
  puts "\n[#{service_name}] 返回结果为:\n#{result}"
@@ -1,3 +1,3 @@
1
1
  module ChanPay
2
- VERSION = "0.4.0"
2
+ VERSION = "0.6.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chan_pay
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - tony
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-10-30 00:00:00.000000000 Z
11
+ date: 2017-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -107,7 +107,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
107
107
  version: '0'
108
108
  requirements: []
109
109
  rubyforge_project:
110
- rubygems_version: 2.4.8
110
+ rubygems_version: 2.6.14
111
111
  signing_key:
112
112
  specification_version: 4
113
113
  summary: '"畅捷支付"'