activewepay 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/activewepay/version.rb +1 -1
- data/lib/activewepay.rb +4 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NWYxZTg1NzNiMGI2MDJkYzljOTMyNDhhOGU4M2U5NzdkMGI4OGZiOA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YWQwMzk1OGEzNjIyMDI5ZTY5N2E1MmM4MjM1MGRlZGFlMmQwOWE4Mg==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
Yjk3ZDE4ZTlmYWQ2MTliZjc1ZDNjYmJjNTI5NjE5Njk0YzViMmRiYTIxYmVh
|
10
|
+
OTYwZmU0ZDYzM2IxZDFjZjRkM2NiNjkwZGFlOGFiMmUzNzJmMzRiZjRhYjMy
|
11
|
+
OWYyNzI3NDhjNWQ1ZjgyOGY4OTZhYWRjMDJkZjMyNGRlOWE0OTY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YWMyODI3YTQ4ZTViMTYyYjBmZDVmNzMwYTcxYjRhYjAyY2VjZThkY2Q1ZmE4
|
14
|
+
OWY2YmE3NTY3NDI1OGE4NDU3MWRlMzkzZmM1YTJkMTI1Yjk1OWQzNTZhMjBl
|
15
|
+
NmFlMTQ2MDAzZmNkOGU5N2MyNzEzOGFhOTg3NTdiOWIwNDA5MTM=
|
data/lib/activewepay/version.rb
CHANGED
data/lib/activewepay.rb
CHANGED
@@ -15,7 +15,7 @@ module ActiveWepay
|
|
15
15
|
|
16
16
|
validate :validate_response
|
17
17
|
|
18
|
-
attr_reader :errors, :oauth_token, :id, :amount, :account_id, :redirect_uri, :callback_uri, :response
|
18
|
+
attr_reader :errors, :oauth_token, :id, :amount, :account_id, :redirect_uri, :callback_uri, :response, :name
|
19
19
|
|
20
20
|
|
21
21
|
STAGE_API_ENDPOINT = "https://stage.wepayapi.com/v2"
|
@@ -33,7 +33,7 @@ module ActiveWepay
|
|
33
33
|
options[:redirect_uri] ? @redirect_uri = options[:redirect_uri] : false
|
34
34
|
options[:callback_uri] ? @callback_uri = options[:callback_uri] : false
|
35
35
|
options[:id] ? @id = options[:id] : false
|
36
|
-
options[:name] ? @name = options[:name] :false
|
36
|
+
options[:name] ? @name = options[:name] : false
|
37
37
|
end
|
38
38
|
|
39
39
|
# make a call to the WePay API
|
@@ -85,14 +85,14 @@ module ActiveWepay
|
|
85
85
|
|
86
86
|
class Account < Base
|
87
87
|
|
88
|
-
validates_presence_of :oauth_token
|
88
|
+
validates_presence_of :oauth_token
|
89
89
|
|
90
90
|
def self.create(options)
|
91
91
|
@account = self.new(options)
|
92
92
|
|
93
93
|
theme = { name: 'Black and White', primary_color: 'FFFFFF', secondary_color: '000000', background_color: 'FFFFFF', button_color: 'FFFFFF' }
|
94
94
|
@account.call('/account/create', @account.oauth_token, {
|
95
|
-
:name => @name,
|
95
|
+
:name => @account.name,
|
96
96
|
:description => 'Automatically generated by Vocalem',
|
97
97
|
:theme_object => theme
|
98
98
|
})
|