mpay_gateway 0.41 → 0.42
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 +11 -1
- data/app/controllers/mpay_confirmation_controller.rb +1 -1
- metadata +7 -3
data/README.markdown
CHANGED
|
@@ -33,7 +33,17 @@ directory:
|
|
|
33
33
|
Spree 0.40
|
|
34
34
|
----------
|
|
35
35
|
|
|
36
|
-
|
|
36
|
+
Install the gem from [rubygems](https://rubygems.org/gems/mpay_gateway) through
|
|
37
|
+
|
|
38
|
+
<blockquote>
|
|
39
|
+
gem install mpay_gateway
|
|
40
|
+
</blockquote>
|
|
41
|
+
|
|
42
|
+
And include it in your Project's Gemfile
|
|
43
|
+
|
|
44
|
+
<blockquote>
|
|
45
|
+
gem 'mpay_gateway'
|
|
46
|
+
</blockquote>
|
|
37
47
|
|
|
38
48
|
Configuration
|
|
39
49
|
=============
|
|
@@ -31,7 +31,7 @@ class MpayConfirmationController < Spree::BaseController
|
|
|
31
31
|
payment_method = PaymentMethod.where(:type => "BillingIntegration::Mpay").where(:environment => RAILS_ENV.to_s).first
|
|
32
32
|
|
|
33
33
|
# TODO log the payment
|
|
34
|
-
order.
|
|
34
|
+
order.payments.create({
|
|
35
35
|
:amount => params["PRICE"],
|
|
36
36
|
:payment_method_id => payment_method,
|
|
37
37
|
:source => payment_details
|
metadata
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mpay_gateway
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
+
hash: 95
|
|
4
5
|
prerelease: false
|
|
5
6
|
segments:
|
|
6
7
|
- 0
|
|
7
|
-
-
|
|
8
|
-
version: "0.
|
|
8
|
+
- 42
|
|
9
|
+
version: "0.42"
|
|
9
10
|
platform: ruby
|
|
10
11
|
authors:
|
|
11
12
|
- Andreas Happe
|
|
@@ -13,7 +14,7 @@ autorequire:
|
|
|
13
14
|
bindir: bin
|
|
14
15
|
cert_chain: []
|
|
15
16
|
|
|
16
|
-
date: 2011-03-
|
|
17
|
+
date: 2011-03-07 00:00:00 +01:00
|
|
17
18
|
default_executable:
|
|
18
19
|
dependencies:
|
|
19
20
|
- !ruby/object:Gem::Dependency
|
|
@@ -24,6 +25,7 @@ dependencies:
|
|
|
24
25
|
requirements:
|
|
25
26
|
- - ">="
|
|
26
27
|
- !ruby/object:Gem::Version
|
|
28
|
+
hash: 185
|
|
27
29
|
segments:
|
|
28
30
|
- 0
|
|
29
31
|
- 40
|
|
@@ -77,6 +79,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
77
79
|
requirements:
|
|
78
80
|
- - ">="
|
|
79
81
|
- !ruby/object:Gem::Version
|
|
82
|
+
hash: 57
|
|
80
83
|
segments:
|
|
81
84
|
- 1
|
|
82
85
|
- 8
|
|
@@ -87,6 +90,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
87
90
|
requirements:
|
|
88
91
|
- - ">="
|
|
89
92
|
- !ruby/object:Gem::Version
|
|
93
|
+
hash: 3
|
|
90
94
|
segments:
|
|
91
95
|
- 0
|
|
92
96
|
version: "0"
|