inpay 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.markdown CHANGED
@@ -1,7 +1,7 @@
1
1
  # inpay gem
2
2
 
3
3
  ## What is it?
4
- A Ruby gem wrapping the inpay.com API for online bank payments.
4
+ A Ruby gem wrapping the inpay.com merchant API.
5
5
 
6
6
  ## Who should use it?
7
7
  Any Ruby on Rails developer who wants/needs to work with inpay.
@@ -51,22 +51,25 @@ The amount can be either a float or a Money object. Options should be passed as
51
51
  These are all required options:
52
52
 
53
53
  - :order_id
54
- - :merchant_id _(your merchant id at inpay)_
55
- - :currency _(defaults to :EUR)_
56
- - :order_text _(a brief description)_
54
+ - :merchant_id _(your merchant id at inpay)_
55
+ - :currency _(defaults to :EUR)_
56
+ - :order_text _(a brief description)_
57
57
  - :buyer_email
58
- - :secret_key _(your sectret key from inpay)_
59
- - :flow_layout _(defaults to :multi_page)_
58
+ - :secret_key _(your sectret key from inpay)_
59
+ - :flow_layout _(defaults to :multi_page)_
60
60
 
61
61
  These are nonmandatory:
62
62
 
63
- - :return_url _(defaults to the return url set in the inpay admin)_
64
- - :pending_url _(defaults to the return url set in the inpay admin)_
65
- - :cancel_url _(defaults to the return url set in the inpay admin)_
63
+ - :return_url _(defaults to the return url set in the inpay admin)_
64
+ - :pending_url _(defaults to the return url set in the inpay admin)_
65
+ - :cancel_url _(defaults to the return url set in the inpay admin)_
66
+ - :notify_url _(defaults to the postback url set in the inpay admin)_
66
67
  - :country
67
- - :invoice_comment
68
+ - :invoice_comment _(will be attached to the created invoice)_
68
69
  - :buyer_name
69
- - :buyer_address
70
+ - :buyer_address _(street, zip code, city, state, country)_
71
+ - :buyer_information _(free text field where you can put information that could be relevant to the customer)_
72
+ - :extra_[name] _(those parameters will be added to the return url without the "extra_" prefix)_
70
73
 
71
74
  ### Handling a postback in your controller
72
75
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.2
1
+ 0.0.3
data/inpay.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{inpay}
8
- s.version = "0.0.2"
8
+ s.version = "0.0.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Wout Fierens"]
12
- s.date = %q{2011-02-19}
12
+ s.date = %q{2011-02-28}
13
13
  s.description = %q{An API wrapper for the inpay.com payment system}
14
14
  s.email = %q{wout@boysabroad.com}
15
15
  s.extra_rdoc_files = [
@@ -9,6 +9,8 @@ module Inpay
9
9
 
10
10
  def inpay_setup amount, options
11
11
  misses = (options.keys - valid_invoice_options)
12
+ misses.delete_if { |option| option.to_s.match(/^extra_/) }
13
+
12
14
  raise ArgumentError, "Unknown options #{ misses.inspect }" unless misses.empty?
13
15
 
14
16
  params = {
@@ -58,10 +60,12 @@ module Inpay
58
60
  :return_url,
59
61
  :pending_url,
60
62
  :cancel_url,
63
+ :notify_url,
61
64
  :country,
62
65
  :invoice_comment,
63
66
  :buyer_name,
64
- :buyer_address
67
+ :buyer_address,
68
+ :buyer_information
65
69
  ]
66
70
  end
67
71
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 2
9
- version: 0.0.2
8
+ - 3
9
+ version: 0.0.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Wout Fierens
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-02-19 00:00:00 +01:00
17
+ date: 2011-02-28 00:00:00 +01:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -149,7 +149,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
149
149
  requirements:
150
150
  - - ">="
151
151
  - !ruby/object:Gem::Version
152
- hash: -1372356043793436068
152
+ hash: 1156396514403171499
153
153
  segments:
154
154
  - 0
155
155
  version: "0"