wirecard_giropay 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -5
- data/lib/wirecard_giropay.rb +1 -0
- data/lib/wirecard_giropay/testing.rb +11 -0
- data/lib/wirecard_giropay/version.rb +1 -1
- data/spec/spec_helper.rb +0 -12
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5d8a78fade06f2c411bab67effc78b817a3f6fad
|
4
|
+
data.tar.gz: 5828c1f75a1a0133f3af16a4f3d0762e00faaeec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c59bdf77be39d8d72059cfb68e304cf70781a595c59a11515b3f852eae8720462bcadf8b0acadd7b6491637778d59566dd9c341b267844f640141461c1af40a
|
7
|
+
data.tar.gz: ba17f3afb7439d1168125df988c76244000a7ff2b5444a5d4fa5c6be0377ad0f86892e5a4903cf7209499e3b380cfbfd192b39cc37a08f532f29d08c42398ace
|
data/README.md
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
# Wirecard Giropay
|
2
2
|
|
3
|
-
|
3
|
+
An implementation of the wirecard giropay interface for giropay payments.
|
4
|
+
|
4
5
|
|
5
6
|
## Installation
|
6
7
|
|
@@ -18,13 +19,10 @@ Or install it yourself as:
|
|
18
19
|
|
19
20
|
$ gem install wirecard_giropay
|
20
21
|
|
21
|
-
## Usage
|
22
|
-
|
23
|
-
TODO: Write usage instructions here
|
24
22
|
|
25
23
|
## Contributing
|
26
24
|
|
27
|
-
1. Fork it ( https://github.com/
|
25
|
+
1. Fork it ( https://github.com/betterplace/wirecard_giropay/fork )
|
28
26
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
29
27
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
30
28
|
4. Push to the branch (`git push origin my-new-feature`)
|
data/lib/wirecard_giropay.rb
CHANGED
@@ -4,6 +4,7 @@ require 'wirecard_giropay/version'
|
|
4
4
|
require 'wirecard_giropay/request'
|
5
5
|
require 'wirecard_giropay/response'
|
6
6
|
require 'wirecard_giropay/gateway'
|
7
|
+
require 'wirecard_giropay/testing'
|
7
8
|
|
8
9
|
module WirecardGiropay
|
9
10
|
SANDBOX_URL = 'https://c3-test.wirecard.com/secure/ssl-gateway'
|
@@ -0,0 +1,11 @@
|
|
1
|
+
module WirecardGiropay
|
2
|
+
class Testing
|
3
|
+
def self.read_sample_file(file)
|
4
|
+
File.read File.expand_path('../../../spec/support/' + file, __FILE__)
|
5
|
+
end
|
6
|
+
|
7
|
+
def self.sample_notification_success_xml
|
8
|
+
read_sample_file 'sample_notification_success.xml'
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
data/spec/spec_helper.rb
CHANGED
@@ -9,15 +9,3 @@ end
|
|
9
9
|
SimpleCov.start 'gem'
|
10
10
|
|
11
11
|
require 'wirecard_giropay'
|
12
|
-
|
13
|
-
RSpec.configure do |config|
|
14
|
-
# config.before do
|
15
|
-
# Bancard.test = true
|
16
|
-
# end
|
17
|
-
#
|
18
|
-
# config.before(:all) do
|
19
|
-
# body = { status: :success, process_id: 'lx6niQel0QzWK1g' }
|
20
|
-
# response = Typhoeus::Response.new(code: 200, body: body.to_json, headers: { 'Location' => 'payment-url' })
|
21
|
-
# Typhoeus.stub(/vpos/).and_return(response)
|
22
|
-
# end
|
23
|
-
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wirecard_giropay
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- betterplace developers
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-12-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -125,6 +125,7 @@ files:
|
|
125
125
|
- lib/wirecard_giropay/gateway.rb
|
126
126
|
- lib/wirecard_giropay/request.rb
|
127
127
|
- lib/wirecard_giropay/response.rb
|
128
|
+
- lib/wirecard_giropay/testing.rb
|
128
129
|
- lib/wirecard_giropay/version.rb
|
129
130
|
- spec/lib/wirecard_giropay/gateway_spec.rb
|
130
131
|
- spec/lib/wirecard_giropay/request_spec.rb
|