active_merchant_pay2go 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/active_merchant_pay2go/version.rb +1 -1
- data/lib/offsite_payments/integrations/pay2go.rb +12 -5
- 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: a2171a5bbc3b4804097f7d1a824fcd32dcbb748b
|
4
|
+
data.tar.gz: ee36649441c2784b5550760cd076cad9106c901b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5b13613685a63d42879dda706fff8b291eab608d7e026fc1e4a2fbadbe8dc473c25b06d71e68988401124066d51e142db1380998181df14ae539e95fbd109073
|
7
|
+
data.tar.gz: b95c85dd22d8badd27419f27a47fc18ca514c972d086e78d5d8d57e80f343e840f94e5e0edd31661129ac489fe8941bb637c2a785aca1213a62e0c70943b9b26
|
@@ -10,12 +10,19 @@ module OffsitePayments #:nodoc:
|
|
10
10
|
CHECK_VALUE_FIELDS = %w(Amt MerchantID MerchantOrderNo TimeStamp Version)
|
11
11
|
CHECK_CODE_FIELDS = %w(Amt MerchantID MerchantOrderNo TradeNo)
|
12
12
|
|
13
|
+
CONFIG = %w(
|
14
|
+
MerchantID LangType TradeLimit ExpireDate NotifyURL EmailModify LoginType
|
15
|
+
)
|
16
|
+
|
13
17
|
mattr_accessor :service_url
|
14
|
-
mattr_accessor :merchant_id
|
15
18
|
mattr_accessor :hash_key
|
16
19
|
mattr_accessor :hash_iv
|
17
20
|
mattr_accessor :debug
|
18
21
|
|
22
|
+
CONFIG.each do |field|
|
23
|
+
mattr_accessor field.underscore.to_sym
|
24
|
+
end
|
25
|
+
|
19
26
|
def self.service_url
|
20
27
|
mode = ActiveMerchant::Billing::Base.mode
|
21
28
|
case mode
|
@@ -40,9 +47,7 @@ module OffsitePayments #:nodoc:
|
|
40
47
|
|
41
48
|
class Helper < OffsitePayments::Helper
|
42
49
|
FIELDS = %w(
|
43
|
-
MerchantID LangType MerchantOrderNo Amt ItemDesc TradeLimit ExpireDate ReturnURL NotifyURL CustomerURL
|
44
|
-
ClientBackURL Email EmailModify LoginType OrderComment CREDIT CreditRed InstFlag UNIONPAY WEBATM VACC
|
45
|
-
CVS BARCODE CUSTOM TokenTerm
|
50
|
+
MerchantID LangType MerchantOrderNo Amt ItemDesc TradeLimit ExpireDate ReturnURL NotifyURL CustomerURL ClientBackURL Email EmailModify LoginType OrderComment CREDIT CreditRed InstFlag UNIONPAY WEBATM VACC CVS BARCODE CUSTOM TokenTerm
|
46
51
|
)
|
47
52
|
|
48
53
|
FIELDS.each do |field|
|
@@ -53,9 +58,11 @@ module OffsitePayments #:nodoc:
|
|
53
58
|
|
54
59
|
def initialize(order, account, options = {})
|
55
60
|
super
|
56
|
-
add_field 'MerchantID', OffsitePayments::Integrations::Pay2go.merchant_id
|
57
61
|
add_field 'Version', OffsitePayments::Integrations::Pay2go::VERSION
|
58
62
|
add_field 'RespondType', OffsitePayments::Integrations::Pay2go::RESPOND_TYPE
|
63
|
+
OffsitePayments::Integrations::Pay2go::CONFIG.each do |field|
|
64
|
+
add_field field, OffsitePayments::Integrations::Pay2go.send(field.underscore.to_sym)
|
65
|
+
end
|
59
66
|
end
|
60
67
|
|
61
68
|
def time_stamp(date)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_merchant_pay2go
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gary
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-02-
|
11
|
+
date: 2016-02-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemerchant
|