sisow 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -1
- data/.travis.yml +7 -0
- data/Gemfile +4 -0
- data/README.rdoc +3 -2
- data/Rakefile +9 -0
- data/lib/sisow/api/request.rb +1 -1
- data/lib/sisow/version.rb +1 -1
- data/spec/sisow.yml.example +5 -2
- metadata +2 -3
- data/spec/sisow.yml +0 -2
data/.gitignore
CHANGED
data/.travis.yml
ADDED
data/Gemfile
CHANGED
data/README.rdoc
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
= Sisow
|
2
|
+
{<img src="https://secure.travis-ci.org/marceldegraaf/sisow.png" />}[http://travis-ci.org/marceldegraaf/sisow]
|
2
3
|
|
3
4
|
*NOTE* This gem is work in progress. I'm planning to have it ready somewhere in March.
|
4
5
|
|
@@ -22,7 +23,7 @@ And update your bundle with <tt>bundle install</tt>
|
|
22
23
|
|
23
24
|
To be able to use the gem, you must first configure it. If you're on Rails, insert the following code in <tt>config/initializers/sisow.rb</tt>:
|
24
25
|
|
25
|
-
Sisow.
|
26
|
+
Sisow.configure do |config|
|
26
27
|
config.merchant_key = 'your-merchant-key'
|
27
28
|
config.merchant_id = 'your-merchant-id'
|
28
29
|
|
@@ -57,7 +58,7 @@ Setting up a payment looks like this:
|
|
57
58
|
:issuer_id => '99', # the issuer id from the previous step
|
58
59
|
:description => 'Acme Inc. payment', # description of this payment
|
59
60
|
:amount => 1299, # amount in Euro in cents
|
60
|
-
:entrance_code => 'foobar-foxtrot', #
|
61
|
+
:entrance_code => 'foobar-foxtrot', # internal verification code of your choice
|
61
62
|
:return_url => 'http://example.com', # where the user is sent after the payment
|
62
63
|
:cancel_url => 'http://example.com', # where the user is sent when he cancels the payment
|
63
64
|
:callback_url => 'http://example.com', # where a failed (not cancelled) payment will be reported
|
data/Rakefile
CHANGED
data/lib/sisow/api/request.rb
CHANGED
@@ -38,7 +38,7 @@ module Sisow
|
|
38
38
|
private
|
39
39
|
|
40
40
|
def can_perform?
|
41
|
-
!Sisow.configuration.merchant_id.empty? && !Sisow.configuration.merchant_key.empty?
|
41
|
+
!(Sisow.configuration.merchant_id.nil? || Sisow.configuration.merchant_id.empty?) && !(Sisow.configuration.merchant_key.nil? || Sisow.configuration.merchant_key.empty?)
|
42
42
|
end
|
43
43
|
|
44
44
|
def uri
|
data/lib/sisow/version.rb
CHANGED
data/spec/sisow.yml.example
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: sisow
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.9.
|
5
|
+
version: 0.9.1
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Marcel de Graaf
|
@@ -90,6 +90,7 @@ extra_rdoc_files: []
|
|
90
90
|
|
91
91
|
files:
|
92
92
|
- .gitignore
|
93
|
+
- .travis.yml
|
93
94
|
- Gemfile
|
94
95
|
- README.rdoc
|
95
96
|
- Rakefile
|
@@ -125,7 +126,6 @@ files:
|
|
125
126
|
- spec/models/sisow_spec.rb
|
126
127
|
- spec/models/sofort_payment_spec.rb
|
127
128
|
- spec/models/transaction_request_spec.rb
|
128
|
-
- spec/sisow.yml
|
129
129
|
- spec/sisow.yml.example
|
130
130
|
- spec/spec_helper.rb
|
131
131
|
- spec/vcr_setup.rb
|
@@ -171,7 +171,6 @@ test_files:
|
|
171
171
|
- spec/models/sisow_spec.rb
|
172
172
|
- spec/models/sofort_payment_spec.rb
|
173
173
|
- spec/models/transaction_request_spec.rb
|
174
|
-
- spec/sisow.yml
|
175
174
|
- spec/sisow.yml.example
|
176
175
|
- spec/spec_helper.rb
|
177
176
|
- spec/vcr_setup.rb
|
data/spec/sisow.yml
DELETED