ecpay_payment 1.1.2
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 +7 -0
- data/Gemfile +4 -0
- data/Rakefile +6 -0
- data/conf/payment_conf.xml +29 -0
- data/ecpay.gemspec +25 -0
- data/lib/ecpay_payment/ECpayPayment.xml +623 -0
- data/lib/ecpay_payment/core_ext/hash.rb +13 -0
- data/lib/ecpay_payment/core_ext/string.rb +5 -0
- data/lib/ecpay_payment/error.rb +8 -0
- data/lib/ecpay_payment/exec_grant_refund.rb +82 -0
- data/lib/ecpay_payment/helper.rb +205 -0
- data/lib/ecpay_payment/payment_client.rb +217 -0
- data/lib/ecpay_payment/query_client.rb +142 -0
- data/lib/ecpay_payment/verification.rb +469 -0
- data/lib/ecpay_payment/version.rb +3 -0
- data/lib/ecpay_payment.rb +7 -0
- metadata +101 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: c2ebf8bcea6bd856d88ea749fa0b8804298cf971
|
4
|
+
data.tar.gz: dc49599fc7fbb2265c6c4f5fabf3f6496368e677
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 62ce1976548b80066914c4f48bbb0f1529b96337eb9634f901995a8a60180883f1a15a9cd0c9ebf7c631df8c6ad2deba84dc6ef2ebffbeb758a2463db58198e3
|
7
|
+
data.tar.gz: b5a7badff8885d29ae5bf8d794e70e40421e52413ba43cce590f22b3991133fb2d9fea2b5e21d5b13189f1e3aae0993ca12806de56300f0979b3d07ae0e87f87
|
data/Gemfile
ADDED
data/Rakefile
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<Conf>
|
3
|
+
<OperatingMode>Test</OperatingMode> <!--Test or Production-->
|
4
|
+
<MercProfile>Stage_Account</MercProfile>
|
5
|
+
<IsProjectContractor>N</IsProjectContractor>
|
6
|
+
|
7
|
+
<MerchantInfo>
|
8
|
+
<MInfo name="Production_Account">
|
9
|
+
<MerchantID></MerchantID>
|
10
|
+
<HashKey></HashKey>
|
11
|
+
<HashIV></HashIV>
|
12
|
+
</MInfo>
|
13
|
+
<MInfo name="Stage_Account">
|
14
|
+
<MerchantID>2000132</MerchantID>
|
15
|
+
<HashKey>5294y06JbISpM5x9</HashKey>
|
16
|
+
<HashIV>v77hoKGq4kWxNNIS</HashIV>
|
17
|
+
</MInfo>
|
18
|
+
</MerchantInfo>
|
19
|
+
|
20
|
+
<IgnorePayment>
|
21
|
+
<!-- <Method>Credit</Method>
|
22
|
+
<Method>WebATM</Method>
|
23
|
+
<Method>ATM</Method>
|
24
|
+
<Method>BARCODE</Method>
|
25
|
+
<Method>CVS</Method>-->
|
26
|
+
|
27
|
+
</IgnorePayment>
|
28
|
+
|
29
|
+
</Conf>
|
data/ecpay.gemspec
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'ecpay_payment/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "ecpay_payment"
|
8
|
+
spec.version = ECpayPayment::VERSION
|
9
|
+
spec.authors = ["Ying Wu"]
|
10
|
+
spec.email = ["ying.wu@ecpay.com.tw"]
|
11
|
+
|
12
|
+
spec.summary = "綠界全方位金流串接用SDK"
|
13
|
+
spec.description = ""
|
14
|
+
spec.homepage = ""
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
spec.files = Dir["Rakefile", "ecpay.gemspec", "Gemfile", "{lib,conf}/**/*"]
|
18
|
+
spec.bindir = "bin"
|
19
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
20
|
+
spec.require_paths = ["lib"]
|
21
|
+
|
22
|
+
spec.add_development_dependency "bundler", "~> 1.12"
|
23
|
+
spec.add_development_dependency "rake", "~> 11.1"
|
24
|
+
spec.add_development_dependency "rspec", "~> 3.4"
|
25
|
+
end
|