geee_pay 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/geee_pay/result.rb +42 -1
- data/lib/geee_pay/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a92f8d1307051c523b24f69407dba85adf50732d
|
4
|
+
data.tar.gz: db1e468cf0cec62ca519aa18c750ff09dea9b5fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ad5238ea634198199332bb352d21fef25a10ce05184196f4981c5b93ee545536d31a6fa396c5fa388e2089379237cc692f03658559918de90ed768e7db68b26
|
7
|
+
data.tar.gz: 907f9f02e69d5c94d04da9d1312c0f7f03f67f6030e37fe140f62931859b90734f880d5d188a136aed648029cbeec1204d3678a8120e0180aaf9cfbc77ccdc79
|
data/lib/geee_pay/result.rb
CHANGED
@@ -6,7 +6,7 @@ module GeeePay
|
|
6
6
|
|
7
7
|
|
8
8
|
# 网关支付-银行编码
|
9
|
-
|
9
|
+
LV_BANK_CODE_MAP = {
|
10
10
|
'102' => '工商银行',
|
11
11
|
'103' => '农业银行',
|
12
12
|
'104' => '中国银行',
|
@@ -31,6 +31,47 @@ module GeeePay
|
|
31
31
|
'440' => '徽商银行'
|
32
32
|
}
|
33
33
|
|
34
|
+
# 扫码支付方式
|
35
|
+
LV_SCAN_PAY_MODE = {
|
36
|
+
'00021' => '支付宝扫码',
|
37
|
+
'00022' => '微信扫码',
|
38
|
+
'00032' => 'QQ扫码',
|
39
|
+
'00027' => '京东扫码'
|
40
|
+
}
|
41
|
+
|
42
|
+
LV_PAY_MODE = {
|
43
|
+
'00020' => '银行卡',
|
44
|
+
'00023' => '快捷',
|
45
|
+
'00024' => '支付宝Wap'
|
46
|
+
}
|
47
|
+
|
48
|
+
# 到账类型
|
49
|
+
LV_RECEIVABLE_TYPE = { 'D00' => 'D+0', 'T01' => 'T+1', 'D01' => 'D+1'}
|
50
|
+
|
51
|
+
# 业务类型
|
52
|
+
LV_WITHDRAW_TYPE = { '0' => '对私', '1' => '对公' }
|
53
|
+
|
54
|
+
# 账户类型
|
55
|
+
LV_ACCOUNT_TYPE = { '0' => '借记卡', '1' => '贷记卡' }
|
56
|
+
|
57
|
+
# 订单状态:交易订单
|
58
|
+
LV_TRAN_ORDER_STATUS= {
|
59
|
+
'00' => '未支付',
|
60
|
+
'01' => '支付成功',
|
61
|
+
'02' => '银行处理中',
|
62
|
+
'14' => '冻结',
|
63
|
+
'19' => '待处理'
|
64
|
+
}
|
65
|
+
|
66
|
+
# 订单状态:代付订单
|
67
|
+
LV_OTH_ORDER_STATUS = {
|
68
|
+
'00' => '未支付',
|
69
|
+
'01' => '已完成',
|
70
|
+
'14' => '冻结',
|
71
|
+
'02' => '银行处理中',
|
72
|
+
'22' => '退还支付账户'
|
73
|
+
}
|
74
|
+
|
34
75
|
def initialize(result)
|
35
76
|
self.raw = result.to_s
|
36
77
|
self.msg = result
|
data/lib/geee_pay/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: geee_pay
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Terry.Tu
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-05-
|
11
|
+
date: 2018-05-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|