activepayment 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +3 -0
- data/Gemfile +1 -11
- data/README.rdoc +36 -1
- data/Rakefile +12 -0
- data/activepayment.gemspec +10 -0
- data/lib/activepayment/version.rb +1 -1
- metadata +92 -3
data/.travis.yml
ADDED
data/Gemfile
CHANGED
data/README.rdoc
CHANGED
@@ -1,4 +1,39 @@
|
|
1
|
-
|
1
|
+
= ActivePayment
|
2
|
+
|
3
|
+
ActivePayment is an abstraction layer for different Payment-Interfaces (XML, JSON)
|
4
|
+
|
5
|
+
== Compatibility
|
6
|
+
|
7
|
+
activepayment is tested against Ruby 1.9.2 .
|
8
|
+
|
9
|
+
{<img src="http://travis-ci.org/aklaiber/activepayment.png" />}[http://travis-ci.org/aklaiber/activepayment]
|
10
|
+
|
11
|
+
== Install
|
12
|
+
|
13
|
+
gem install activepayment
|
14
|
+
|
15
|
+
or add the following line to Gemfile:
|
16
|
+
|
17
|
+
gem 'activepayment'
|
18
|
+
|
19
|
+
and run bundle install from your shell.
|
20
|
+
|
21
|
+
== Examples
|
22
|
+
|
23
|
+
=== Config
|
24
|
+
|
25
|
+
ActivePayment::Payone::Gateway.config = {:mid => 123456, :portalid => 1234, :key => 'test', :mode => 'test'}
|
26
|
+
|
27
|
+
=== Post request
|
28
|
+
|
29
|
+
gateway = ActivePayment::Payone::Gateway.new
|
30
|
+
|
31
|
+
gateway.authorization
|
32
|
+
gateway.createaccess
|
33
|
+
gateway.updateuser(:userid => 123)
|
34
|
+
gateway.updateaccess(:accessid => 123, :action => 'update')
|
35
|
+
gateway.threedscheck(:cardpan => "4111111111111111", :exiturl => "http://www.example.com")
|
36
|
+
gateway.updatereminder(:txid => 123, :reminderlevel => 2)
|
2
37
|
|
3
38
|
== Supported Gateways
|
4
39
|
|
data/Rakefile
CHANGED
@@ -2,3 +2,15 @@ require 'bundler/gem_tasks'
|
|
2
2
|
require 'rspec/core/rake_task'
|
3
3
|
|
4
4
|
RSpec::Core::RakeTask.new(:spec)
|
5
|
+
|
6
|
+
namespace :spec do
|
7
|
+
desc "Run the code examples in spec/unit"
|
8
|
+
RSpec::Core::RakeTask.new('unit') do |t|
|
9
|
+
t.pattern = 'spec/unit/**/*_spec.rb'
|
10
|
+
end
|
11
|
+
|
12
|
+
desc "Run the code examples in spec/functional"
|
13
|
+
RSpec::Core::RakeTask.new('functional') do |t|
|
14
|
+
t.pattern = 'spec/functional/**/*_spec.rb'
|
15
|
+
end
|
16
|
+
end
|
data/activepayment.gemspec
CHANGED
@@ -17,4 +17,14 @@ Gem::Specification.new do |s|
|
|
17
17
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
18
18
|
s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
|
19
19
|
s.require_paths = ["lib"]
|
20
|
+
|
21
|
+
s.add_dependency "activesupport"
|
22
|
+
s.add_dependency "i18n"
|
23
|
+
s.add_dependency "nokogiri"
|
24
|
+
s.add_dependency "builder"
|
25
|
+
s.add_dependency "uuid"
|
26
|
+
|
27
|
+
s.add_development_dependency "rspec"
|
28
|
+
s.add_development_dependency "rake"
|
29
|
+
s.add_development_dependency "forgery"
|
20
30
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activepayment
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,8 +9,96 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-
|
13
|
-
dependencies:
|
12
|
+
date: 2011-11-10 00:00:00.000000000Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: activesupport
|
16
|
+
requirement: &22780960 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *22780960
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: i18n
|
27
|
+
requirement: &22780420 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
33
|
+
type: :runtime
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *22780420
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: nokogiri
|
38
|
+
requirement: &22751900 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ! '>='
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '0'
|
44
|
+
type: :runtime
|
45
|
+
prerelease: false
|
46
|
+
version_requirements: *22751900
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: builder
|
49
|
+
requirement: &22751480 !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
type: :runtime
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: *22751480
|
58
|
+
- !ruby/object:Gem::Dependency
|
59
|
+
name: uuid
|
60
|
+
requirement: &22751060 !ruby/object:Gem::Requirement
|
61
|
+
none: false
|
62
|
+
requirements:
|
63
|
+
- - ! '>='
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: '0'
|
66
|
+
type: :runtime
|
67
|
+
prerelease: false
|
68
|
+
version_requirements: *22751060
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rspec
|
71
|
+
requirement: &22750600 !ruby/object:Gem::Requirement
|
72
|
+
none: false
|
73
|
+
requirements:
|
74
|
+
- - ! '>='
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0'
|
77
|
+
type: :development
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: *22750600
|
80
|
+
- !ruby/object:Gem::Dependency
|
81
|
+
name: rake
|
82
|
+
requirement: &22750140 !ruby/object:Gem::Requirement
|
83
|
+
none: false
|
84
|
+
requirements:
|
85
|
+
- - ! '>='
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
version: '0'
|
88
|
+
type: :development
|
89
|
+
prerelease: false
|
90
|
+
version_requirements: *22750140
|
91
|
+
- !ruby/object:Gem::Dependency
|
92
|
+
name: forgery
|
93
|
+
requirement: &22749700 !ruby/object:Gem::Requirement
|
94
|
+
none: false
|
95
|
+
requirements:
|
96
|
+
- - ! '>='
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
version: '0'
|
99
|
+
type: :development
|
100
|
+
prerelease: false
|
101
|
+
version_requirements: *22749700
|
14
102
|
description: ActivePayment is an abstraction layer for different Payment-Interfaces
|
15
103
|
(XML, JSON)
|
16
104
|
email:
|
@@ -22,6 +110,7 @@ files:
|
|
22
110
|
- .gitignore
|
23
111
|
- .rspec
|
24
112
|
- .rvmrc
|
113
|
+
- .travis.yml
|
25
114
|
- Gemfile
|
26
115
|
- README.rdoc
|
27
116
|
- Rakefile
|