Skip to content
This repository
Browse code

final changes

  • Loading branch information...
commit ac876a5e070be2e7a45582c09439eb24d842cc3d 1 parent d4f02e3
Manuel van Rijn authored
4 CHANGELOG.md
Source Rendered
... ... @@ -0,0 +1,4 @@
  1 +# Changelog
  2 +
  3 +- **16 February 2012**: version 0.0.1
  4 + - Initial release
20 LICENSE.md
Source Rendered
... ... @@ -0,0 +1,20 @@
  1 +Copyright (c) 2012 Manuel van Rijn, http://manuel.manuelles.nl/
  2 +
  3 +Permission is hereby granted, free of charge, to any person obtaining
  4 +a copy of this software and associated documentation files (the
  5 +"Software"), to deal in the Software without restriction, including
  6 +without limitation the rights to use, copy, modify, merge, publish,
  7 +distribute, sublicense, and/or sell copies of the Software, and to
  8 +permit persons to whom the Software is furnished to do so, subject to
  9 +the following conditions:
  10 +
  11 +The above copyright notice and this permission notice shall be
  12 +included in all copies or substantial portions of the Software.
  13 +
  14 +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  15 +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  16 +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  17 +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
  18 +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
  19 +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  20 +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
73 README.md
Source Rendered
... ... @@ -1,79 +1,52 @@
1 1 # Mollie-Bank
2 2
3   -A simple implementation of the "TM Bank" by Mollie, but without the portforward stuff to test your iDeal transactions localy.
  3 +A simple implementation of the "TM Bank" by [Mollie](http://www.mollie.nl), but without the portforward stuff to test your iDeal transactions localy.
4 4
5   -## Install and Run it
  5 +## Getting started
6 6
7   -Install the gem
  7 +### Install
  8 +
  9 +To install the gem you should execute
8 10
9 11 ```
10 12 gem install mollie-bank
11 13 ```
12 14
13   -Run the mollie-bank
  15 +Or if you are implementing this into a Rails project you could add the gem into your `Gemfile`.
14 16
15 17 ```
16   -mollie-bank
  18 +gem 'mollie-bank'
17 19 ```
18 20
19   -Check if it works by browsing to: [http://localhost:4567/](http://localhost:4567/)
20   -
21   -## Howto implement
22   -
23   -Here's a list with examples how to use this gem in combination with some API/Frameworks I found/used. Feel free to extend this list with your examples.
24   -
25   -### Ruby on Rails
26   -
27   -Add the `mollie-bank` to your Gemfile
  21 +Finally, if you don’t dig any of that gemming that’s so popular nowadays, you can install it as a plugin for you Rails project:
28 22
29 23 ```
30   -gem 'mollie-bank', :git => 'https://github.com/manuelvanrijn/mollie-bank.git'
  24 +cd vendor/plugins
  25 +git clone --depth 1 git://github.com/manuelvanrijn/mollie-bank.git mollie-bank
31 26 ```
32 27
33   -Change you config.ru so it will run the mollie-bank when you start the rails server. For example, I changed the following:
  28 +### Running the Mollie Bank
34 29
35   -```
36   -# This file is used by Rack-based servers to start the application.
  30 +After installation you can simple run:
37 31
38   -require ::File.expand_path('../config/environment', __FILE__)
39   -run YourRailsApplicationName::Application
40 32 ```
41   -
42   -into:
43   -
  33 +mollie-bank
44 34 ```
45   -# This file is used by Rack-based servers to start the application.
46 35
47   -require ::File.expand_path('../config/environment', __FILE__)
48   -require 'mollie-bank'
  36 +Check if it works by browsing to: [http://localhost:4567/](http://localhost:4567/)
49 37
50   -# - Make sinatra play nice
51   -use Rack::MethodOverride
52   -disable :run, :reload
  38 +## Howto implement
53 39
54   -map "/" do
55   - run YourRailsApplicationName::Application
56   -end
  40 +By default all communication for iDeal transactions is through [https://secure.mollie.nl/xml/ideal](https://secure.mollie.nl/xml/ideal). To use the "Mollie Bank" gem, you have to change this path into http://localhost:4567/xml/ideal](http://localhost:4567/xml/ideal).
57 41
58   -configure(:development) {
59   - map "/mollie-bank" do
60   - run MollieBank::Application
61   - end
62   -}
63   -```
  42 +Of course you only want to use this in development mode, so you have to create some code to change this path only when it isn't in production mode.
64 43
65   -At this point you must communicate with [http://localhost:3000/mollie-bank/xml/ideal](http://localhost:3000/mollie-bank/xml/ideal) instead of the official [https://secure.mollie.nl/xml/ideal](https://secure.mollie.nl/xml/ideal)
  44 +Check the [Wiki: Implement into existing modules](https://github.com/manuelvanrijn/mollie-bank/wiki/Implement-into-existing-modules) page for implementation of existing frameworks/modules.
66 45
67   -#### Use the ideal-mollie gem
  46 +## Changelog
68 47
69   -If you are using the [ideal-mollie](https://github.com/manuelvanrijn/ideal-mollie) gem, you can easely implement this by changing / adding two lines to you `config.ru`
  48 +A detailed overview of can be found in the [CHANGELOG](https://github.com/manuelvanrijn/mollie-bank/blob/master/CHANGELOG.md).
70 49
71   -```
72   -configure(:development) {
73   - map "/mollie-bank" do
74   - IdealMollie.send(:remove_const, 'MOLLIE_URL')
75   - IdealMollie.const_set('MOLLIE_URL', 'http://localhost:3000/mollie-bank/xml/ideal')
76   - run MollieBank::Application
77   - end
78   -}
79   -```
  50 +## Copyright
  51 +
  52 +Copyright © 2012 Manuel van Rijn. See [LICENSE](https://github.com/manuelvanrijn/mollie-bank/blob/master/LICENSE.md) for further details.
9 bin/mollie-bank
... ... @@ -1,5 +1,4 @@
1 1 #!/usr/bin/env ruby
2   -#
3 2 begin
4 3 require 'mollie-bank'
5 4 rescue LoadError => e
@@ -9,5 +8,11 @@ rescue LoadError => e
9 8 require 'mollie-bank'
10 9 end
11 10
  11 +puts "== Mollie Bank started!"
  12 +puts " please visit: http://localhost:4567/"
  13 +puts ""
  14 +
12 15 MollieBank::Application.run!
13   -puts "Mollie Bank started"
  16 +
  17 +puts ""
  18 +puts "== Mollie Bank stopped. Good bye"
6 lib/mollie-bank/application/views/info.haml
@@ -5,12 +5,12 @@
5 5 .row
6 6 .span4
7 7 %h1 Step 1
8   - %p Make sure you change the url <a>https://secure.mollie.nl/xml/ideal</a> into <a>http://localhost:3000/mollie-bank/xml/ideal</a>
9   - %p If you are using the <a href="https://github.com/manuelvanrijn/ideal-mollie">ideal-mollie</a> gem, you only have to include this gem into you gemfile.
  8 + %p Make sure you change the url <a>https://secure.mollie.nl/xml/ideal</a> into <a>http://localhost:4567/xml/ideal</a>
  9 + %p If you are using a existing framework/module, you might find additional implementation information on the <a href="https://github.com/manuelvanrijn/mollie-bank/wiki/Implement-into-existing-modules">Wiki: 'Implement into existing modules'</a>.
10 10 .span4
11 11 %h1 Step 2
12 12 %p Make sure the <code>returnurl</code> and the <code>reporturl</code> are set to your local address. So for example you would have:
13 13 <code>http://localhost:3000/transactions/report</code>
14 14 .span4
15 15 %h1 Step 3
16   - You'll now see Mollie Bank in the bank selection.
  16 + You'll now see <strong>"Mollie Bank"</strong> in the bank selection.
6 mollie-bank.gemspec
@@ -7,9 +7,9 @@ Gem::Specification.new do |s|
7 7 s.version = MollieBank::VERSION
8 8 s.authors = ["Manuel van Rijn"]
9 9 s.email = ["manuel@manuelles.nl"]
10   - s.homepage = ""
11   - s.summary = %q{Write a gem summary}
12   - s.description = %q{Write a gem description}
  10 + s.homepage = "https://github.com/manuelvanrijn/mollie-bank"
  11 + s.summary = %q{Mollie Bank server to make Mollie iDeal payments on your local machine}
  12 + s.description = %q{A small sinatra server that supports all the actions Mollie iDeal API needs to make a payment. Now you can test your transactions on you local machine without having to make portforwards}
13 13
14 14 s.rubyforge_project = "mollie-bank"
15 15

0 comments on commit ac876a5

Please sign in to comment.
Something went wrong with that request. Please try again.