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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 890748caa0d2cd4ae86eb076b491aff748d2e0ef
4
- data.tar.gz: 921c7dd8dfd70da3cc21f854d19426dd727cb02a
3
+ metadata.gz: f30c5d2a39ea108fcf7ce282c37fc73d380d17e7
4
+ data.tar.gz: 3eed512f3ce28fc74302b89d5f530a8d7c9c7bf8
5
5
  SHA512:
6
- metadata.gz: be1d733493f34243ca56c7dfcdd253ef6c8e24ad28450b0946153337f32ec8d28c0585eccd1e49591c024020d87ceecb463444d1e61b4934b9f9a8bc22063e2d
7
- data.tar.gz: 4894a55e5f91e39aa6c2f38b4cf0080d12cb2b6268d4aa3e031193fe2c7d56eccaed582bcc6c30c961a3629ec9f134bd598b45063ce5badda506039482c84808
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 = "https://api.sofort.com/api/xml"
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 = "DE"
14
- config.currency_code = "EUR"
15
- config.reason = "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
  },
@@ -1,3 +1,3 @@
1
1
  module Sofort
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
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.2
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-23 00:00:00.000000000 Z
11
+ date: 2015-09-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler