sisow 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sisow (0.9.9)
4
+ sisow (1.0.0)
5
5
  hashie
6
6
  httparty
7
7
 
data/lib/sisow.rb CHANGED
@@ -1,6 +1,7 @@
1
1
  require 'rubygems'
2
2
  require 'httparty'
3
3
  require 'hashie'
4
+ require 'cgi'
4
5
 
5
6
  require 'sisow/configuration'
6
7
  require 'sisow/error_response'
@@ -79,6 +79,10 @@ module Sisow
79
79
  end
80
80
  end
81
81
 
82
+ if payment.respond_to?(:locale) && ( !payment.locale.nil? && !payment.locale.empty? )
83
+ params[:locale] = payment.locale
84
+ end
85
+
82
86
  params
83
87
  end
84
88
 
@@ -1,6 +1,8 @@
1
1
  module Sisow
2
2
  class PaypalPayment < Sisow::Payment
3
3
 
4
+ attr_accessor :locale
5
+
4
6
  def payment_method
5
7
  'paypalec'
6
8
  end
data/lib/sisow/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Sisow
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
@@ -12,7 +12,8 @@ describe Sisow::PaypalPayment do
12
12
  :cancel_url => 'http://example.com/cancel',
13
13
  :callback_url => 'http://example.com/callback',
14
14
  :notify_url => 'http://example.com/notify',
15
- :amount => 1299
15
+ :amount => 1299,
16
+ :locale => 'EN'
16
17
  )
17
18
  end
18
19
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sisow
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-09 00:00:00.000000000 Z
12
+ date: 2012-07-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httparty