paymentsjs-rails 0.2.6 → 0.2.7
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/paymentsjs-rails.rb +11 -11
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e845f1b4b182bd9244b4e4dda55e1f418f07acd7
|
|
4
|
+
data.tar.gz: a89772812c83d524a2e1a2b75837cd2c31ea53d6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1198e7969083387472cca6485d8d335009ac202a6d86d7a84423289d1ddd5aba68135096a7e00f60fabfe2512192e47c2d3222977bf150109d98f0c6f510ae09
|
|
7
|
+
data.tar.gz: 994e6c192389f61aae42f8364276123c4d8218d7254a55cb99e4ad93f3c04e8315655298a335a8ddfe2d5b215627f6baa515913fc50c008ac1f574a576f8c92d
|
data/lib/paymentsjs-rails.rb
CHANGED
|
@@ -7,9 +7,7 @@ class PaymentsJs
|
|
|
7
7
|
|
|
8
8
|
attr_reader :address, :city, :state, :zip, :amount, :req_id, :name, :request_type, :pre_auth, :environment, :api_key, :salt, :mid, :postback_url, :auth_key
|
|
9
9
|
|
|
10
|
-
def
|
|
11
|
-
|
|
12
|
-
def configuration
|
|
10
|
+
def configuration
|
|
13
11
|
yield self
|
|
14
12
|
end
|
|
15
13
|
|
|
@@ -24,14 +22,8 @@ class PaymentsJs
|
|
|
24
22
|
class_variable_get("@@#{name}")
|
|
25
23
|
end
|
|
26
24
|
end
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
def define_class_method(name, &block)
|
|
31
|
-
(class << self; self; end).instance_eval do
|
|
32
|
-
define_method name, &block
|
|
33
|
-
end
|
|
34
|
-
end
|
|
25
|
+
|
|
26
|
+
def initialize(order)
|
|
35
27
|
|
|
36
28
|
@order = order
|
|
37
29
|
@address = @order[:address]
|
|
@@ -91,4 +83,12 @@ class PaymentsJs
|
|
|
91
83
|
|
|
92
84
|
end
|
|
93
85
|
|
|
86
|
+
private
|
|
87
|
+
|
|
88
|
+
def define_class_method(name, &block)
|
|
89
|
+
(class << self; self; end).instance_eval do
|
|
90
|
+
define_method name, &block
|
|
91
|
+
end
|
|
92
|
+
end
|
|
93
|
+
|
|
94
94
|
end
|