sofort 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/generators/templates/sofort.rb +5 -6
- data/lib/sofort/client.rb +2 -0
- data/lib/sofort/version.rb +1 -1
- 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: f30c5d2a39ea108fcf7ce282c37fc73d380d17e7
|
4
|
+
data.tar.gz: 3eed512f3ce28fc74302b89d5f530a8d7c9c7bf8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f10205c934e6590e59aa3b7659c5f423f0024079a56f387a1dc820aecfa589334ea72187839bcdd43ed6f4c0c866117050d4b7ffbd0a2353028abdc1da02a44
|
7
|
+
data.tar.gz: 20ada87480f7d1836065d25d443dfcf4a9ba9d038c0235d4e244a5ed0958d827d64f311fda33bd9f148b3e1ebd238739e62d231f2e7843e248271e3cc1f6034e
|
@@ -1,19 +1,18 @@
|
|
1
1
|
Sofort.setup do |config|
|
2
2
|
|
3
|
-
config.base_url =
|
3
|
+
config.base_url = 'https://api.sofort.com/api/xml'
|
4
4
|
config.user_id = 'sofort_user_id'
|
5
5
|
config.api_key = 'api_key'
|
6
6
|
config.abort_url = 'abort_url'
|
7
7
|
config.success_url = 'success_url'
|
8
8
|
config.notification_url = 'notification_url'
|
9
|
-
|
9
|
+
config.language_code = 'de'
|
10
10
|
config.email_customer = 'email_customer'
|
11
11
|
config.notification_email = 'notification_email'
|
12
12
|
config.project_id = 'project_id'
|
13
|
-
config.country_code =
|
14
|
-
config.currency_code =
|
15
|
-
config.reason =
|
16
|
-
|
13
|
+
config.country_code = 'DE'
|
14
|
+
config.currency_code = 'EUR'
|
15
|
+
config.reason = 'Reason'
|
17
16
|
config.user_variable = 'user_variable'
|
18
17
|
|
19
18
|
end
|
data/lib/sofort/client.rb
CHANGED
@@ -53,6 +53,7 @@ module Sofort
|
|
53
53
|
success_url = opts[:success_url] || Sofort.success_url
|
54
54
|
abort_url = opts[:abort_url] || Sofort.abort_url
|
55
55
|
email_customer = opts[:email_customer] || Sofort.email_customer
|
56
|
+
language_code = opts[:language_code] || Sofort.language_code
|
56
57
|
notification_email = opts[:notification_email] || Sofort.notification_email
|
57
58
|
notification_url = opts[:notification_url] || Sofort.notification_url
|
58
59
|
user_variable = opts[:user_variable] || Sofort.user_variable
|
@@ -60,6 +61,7 @@ module Sofort
|
|
60
61
|
{
|
61
62
|
amount: amount,
|
62
63
|
currency_code: currency_code,
|
64
|
+
language_code: language_code,
|
63
65
|
reasons: {
|
64
66
|
reason: reason
|
65
67
|
},
|
data/lib/sofort/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sofort
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- skopu
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-09-
|
11
|
+
date: 2015-09-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|