activemerchant_patch_for_china 0.2.0 → 0.2.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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bf7287c8ec030299bda35a1471ff490ad8699251
|
|
4
|
+
data.tar.gz: ca7a3306ed7d93bf70a1add37bc1a042b39c6813
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1e6818ecfa829a01c32c82171e0b6578907c2da28772df8ec8fa0faaaeafd73df8d86a0cfd81c6d74b5ec84a8ec7c46e6db65c75908195b6b5b54ee748de3846
|
|
7
|
+
data.tar.gz: c31b1aeb6eebea089c5ce48b3be398fb110db0d9091424c48524835cac1913e3536eb3ef85a945a47e22ef4e554f52a16ed866d0cb2c14c7560124ad98bfa3e2
|
|
@@ -8,7 +8,7 @@ module ActiveMerchant #:nodoc:
|
|
|
8
8
|
module Alipay
|
|
9
9
|
|
|
10
10
|
mattr_accessor :service_url
|
|
11
|
-
self.service_url = 'https://mapi.alipay.com/gateway.do'
|
|
11
|
+
self.service_url = 'https://mapi.alipay.com/gateway.do?_input_charset=utf-8'
|
|
12
12
|
|
|
13
13
|
def self.notification(post)
|
|
14
14
|
Notification.new(post)
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
require '
|
|
1
|
+
require 'openssl'
|
|
2
2
|
|
|
3
3
|
module ActiveMerchant #:nodoc:
|
|
4
4
|
module Billing #:nodoc:
|
|
5
5
|
module Integrations #:nodoc:
|
|
6
6
|
module Yeepay
|
|
7
7
|
class Helper < ActiveMerchant::Billing::Integrations::Helper
|
|
8
|
-
mapping :account, 'p1_MerId'
|
|
8
|
+
mapping :account, 'p1_MerId'
|
|
9
9
|
mapping :order, 'p2_Order'
|
|
10
10
|
mapping :amount, 'p3_Amt'
|
|
11
11
|
mapping :currency, 'p4_Cur'
|
|
12
|
-
|
|
12
|
+
|
|
13
13
|
mapping :description, 'p5_Pid'
|
|
14
14
|
mapping :return_url, 'p8_Url'
|
|
15
15
|
mapping :channel, 'pd_FrpId'
|
|
@@ -24,7 +24,7 @@ module ActiveMerchant #:nodoc:
|
|
|
24
24
|
end
|
|
25
25
|
|
|
26
26
|
def hmac_md5_hexdigest
|
|
27
|
-
HMAC
|
|
27
|
+
OpenSSL::HMAC.hexdigest("md5", KEY, @fields.sort.collect{|s| s[1]}.join)
|
|
28
28
|
end
|
|
29
29
|
end
|
|
30
30
|
end
|
metadata
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: activemerchant_patch_for_china
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Richard Huang
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2014-03-31 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
|
16
16
|
requirements:
|
|
17
|
-
- -
|
|
17
|
+
- - ">="
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
19
|
version: '0'
|
|
20
20
|
type: :development
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
|
-
- -
|
|
24
|
+
- - ">="
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
26
|
version: '0'
|
|
27
27
|
description: A rails plugin to add an active_merchant patch for china online payment
|
|
@@ -32,7 +32,7 @@ executables: []
|
|
|
32
32
|
extensions: []
|
|
33
33
|
extra_rdoc_files: []
|
|
34
34
|
files:
|
|
35
|
-
- .gitignore
|
|
35
|
+
- ".gitignore"
|
|
36
36
|
- Gemfile
|
|
37
37
|
- MIT-LICENSE
|
|
38
38
|
- README.textile
|
|
@@ -77,17 +77,17 @@ require_paths:
|
|
|
77
77
|
- lib
|
|
78
78
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
79
79
|
requirements:
|
|
80
|
-
- -
|
|
80
|
+
- - ">="
|
|
81
81
|
- !ruby/object:Gem::Version
|
|
82
82
|
version: '0'
|
|
83
83
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
84
84
|
requirements:
|
|
85
|
-
- -
|
|
85
|
+
- - ">="
|
|
86
86
|
- !ruby/object:Gem::Version
|
|
87
87
|
version: 1.3.6
|
|
88
88
|
requirements: []
|
|
89
89
|
rubyforge_project:
|
|
90
|
-
rubygems_version: 2.0.
|
|
90
|
+
rubygems_version: 2.2.0.rc.1
|
|
91
91
|
signing_key:
|
|
92
92
|
specification_version: 4
|
|
93
93
|
summary: A rails plugin to add an active_merchant patch for china online payment platform
|